fixed: passwd winix funtion always changed a password for current user
(even if it was an administrator and has selected other people) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@825 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -113,10 +113,10 @@ long user_id;
|
||||
return;
|
||||
}
|
||||
|
||||
if( !IsPasswordCorrect(pass_new, pass_conf) )
|
||||
if( !IsPasswordCorrect(pass_new, pass_conf, true) )
|
||||
return;
|
||||
|
||||
if( ChangePassword(cur->session->puser->id, pass_new) )
|
||||
if( ChangePassword(puser->id, pass_new) )
|
||||
{
|
||||
slog << loginfo << T("passwd_password_changed") << logend;
|
||||
system->RedirectToLastItem();
|
||||
|
Reference in New Issue
Block a user