mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-26647 (reuse info) Include password validation plugin information in the error message if the SQL statement is not satisfied password policy
send information about password reusing
This commit is contained in:
@@ -10,11 +10,13 @@ grant select on *.* to user_name@localhost identified by 'test_pwd';
|
||||
ERROR HY000: Your password does not satisfy the current policy requirements
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1819 password_reuse_check: The password was already used
|
||||
Error 1819 Your password does not satisfy the current policy requirements
|
||||
alter user user_name@localhost identified by 'test_pwd';
|
||||
ERROR HY000: Operation ALTER USER failed for 'user_name'@'localhost'
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1819 password_reuse_check: The password was already used
|
||||
Error 1819 Your password does not satisfy the current policy requirements
|
||||
Error 1396 Operation ALTER USER failed for 'user_name'@'localhost'
|
||||
# check exparation
|
||||
@@ -23,6 +25,7 @@ alter user user_name@localhost identified by 'test_pwd';
|
||||
ERROR HY000: Operation ALTER USER failed for 'user_name'@'localhost'
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1819 password_reuse_check: The password was already used
|
||||
Error 1819 Your password does not satisfy the current policy requirements
|
||||
Error 1396 Operation ALTER USER failed for 'user_name'@'localhost'
|
||||
select hex(hash) from mysql.password_reuse_check_history;
|
||||
|
Reference in New Issue
Block a user