changed: in passwd: a redirect make only if a password has been changed

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@928 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2013-05-16 20:11:27 +00:00
parent 81160dbbe9
commit 9ffda3e070
1 changed files with 2 additions and 2 deletions

View File

@ -223,8 +223,8 @@ void Passwd::ResetPassword()
const std::wstring & login = cur->request->PostVar(L"login");
long code = Tol(cur->request->PostVar(L"code"));
ResetPassword(login, code, true, false);
system->RedirectToLastItem();
if( ResetPassword(login, code, true, false) )
system->RedirectToLastItem();
}