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:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user