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:
1 parent
81160dbbe9
commit
9ffda3e070
1 file changed
+2
-2
@@ -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