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:
Tomasz Sowa 2012-03-30 06:44:38 +00:00
parent 09bfdf9e77
commit 1d83cf42a1
1 changed files with 2 additions and 2 deletions

View File

@ -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();