From: Evan Prodromou Date: Fri, 20 Feb 2009 21:58:19 +0000 (-0500) Subject: use return value of common_check_user() in login.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4aa9b95f51216edaffcd229d9c31a5f905a76b13;p=quix0rs-gnu-social.git use return value of common_check_user() in login.php --- diff --git a/actions/login.php b/actions/login.php index 71e4679292..b049791fb1 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; }