From 1d83cf42a1e734791f75583aa44e7a62b6e2e312 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Fri, 30 Mar 2012 06:44:38 +0000 Subject: [PATCH] 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 --- functions/passwd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/passwd.cpp b/functions/passwd.cpp index 0538a9f..60e6209 100755 --- a/functions/passwd.cpp +++ b/functions/passwd.cpp @@ -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();