1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

apply in SET PASSWORD same checks as in GRANT, to let only valid hashes through

This commit is contained in:
unknown
2004-07-30 22:05:08 +02:00
parent 5e3a68892a
commit 95da1ff0fc
5 changed files with 26 additions and 10 deletions

View File

@@ -40,6 +40,8 @@ show tables;
Tables_in_test
update mysql.user set password=old_password("gambling2") where user=_binary"test";
flush privileges;
set password='gambling3';
ERROR HY000: Password hash should be a 41-digit hexadecimal number
set password=old_password('gambling3');
show tables;
Tables_in_mysql