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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user