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:
parent
09bfdf9e77
commit
1d83cf42a1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue