Commit 1c6d95f3 authored by Sergei Golubchik's avatar Sergei Golubchik

merge

parents ca28d5fc 534c2b12
......@@ -1652,6 +1652,8 @@ bool change_password(THD *thd, const char *host, const char *user,
{
acl_user->auth_string.str= strmake_root(&mem, new_password, new_password_len);
acl_user->auth_string.length= new_password_len;
acl_user->plugin= new_password_len == SCRAMBLED_PASSWORD_CHAR_LENGTH_323 ?
old_password_plugin_name : native_password_plugin_name;
set_user_salt(acl_user, new_password, new_password_len);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment