No notice for an obvious state after logging in

After a user logged in, we do not need to send a notice.
It is pretty obvious, that the credentials were correct.
This commit is contained in:
Karsten Heiken
2011-08-21 13:39:35 +02:00
parent b2a9b8b087
commit 4988c91436

View File

@@ -158,7 +158,6 @@ class Access {
*/ */
public function login($username, $password, $remember = false) { public function login($username, $password, $remember = false) {
if ($this->ci->user->login($username, $password, $remember)) { if ($this->ci->user->login($username, $password, $remember)) {
$this->ci->messages->add(_('Logged in successfully'), 'success');
return true; return true;
} else { } else {
$this->ci->messages->add(_('Incorrect username or password'), 'error'); $this->ci->messages->add(_('Incorrect username or password'), 'error');