changed: we do not make a 'base redirect' when the request method is POST

changed: ConfParser -- now we have spaces (only one level)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@767 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-09-16 22:46:42 +00:00
parent f113e2ef31
commit 60f0e62c23
11 changed files with 546 additions and 307 deletions

View File

@@ -103,6 +103,9 @@ void Login::MakePost()
return;
}
if( cur->session->puser )
system->users.LogoutCurrentUser();
const std::wstring & login = cur->request->PostVar(L"login");
const std::wstring & pass = cur->request->PostVar(L"password");
const std::wstring & remem = cur->request->PostVar(L"rememberme");
@@ -114,7 +117,7 @@ void Login::MakePost()
}
else
{
// !! moze zglosic komunikat o nie poprawnym logowaniu
log << log2 << "Login: incorrect login/password" << logend;
}
system->RedirectToLastItem();

View File

@@ -29,7 +29,6 @@ public:
private:
void LoginUser(long user_id, bool remember_me);
void ClearTmpStruct();
bool CheckPasswords(const std::wstring & password);