diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-02-22 17:03:41 -0800 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-02-22 17:03:41 -0800 |
commit | 8e0508dad3bb888b0c01834614b1aa7e16cfe583 (patch) | |
tree | 04f2734597377942fbbfc5b4f133e951ccc645a5 /actions/login.php | |
parent | cdab8d55a96b61ce6cfbec697d95e3223751fd3f (diff) | |
parent | da532bae9131b6dec8f5c0d67ce77c4ad1736f7d (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions/login.php')
-rw-r--r-- | actions/login.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/login.php b/actions/login.php index 71e467929..b049791fb 100644 --- a/actions/login.php +++ b/actions/login.php @@ -108,13 +108,15 @@ class LoginAction extends Action $nickname = common_canonical_nickname($this->trimmed('nickname')); $password = $this->arg('password'); - if (!common_check_user($nickname, $password)) { + $user = common_check_user($nickname, $password); + + if (!$user) { $this->showForm(_('Incorrect username or password.')); return; } // success! - if (!common_set_user($nickname)) { + if (!common_set_user($user)) { $this->serverError(_('Error setting user.')); return; } |