Skip to content

Commit

Permalink
Login using email or username.
Browse files Browse the repository at this point in the history
  • Loading branch information
maddoger committed Nov 5, 2015
1 parent 1d5386b commit d023705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/models/LoginForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function login()
public function getUser()
{
if ($this->_user === null) {
$this->_user = User::findByUsername($this->username, false);
$this->_user = User::findByUsernameOrEmail($this->username, false);
}
return $this->_user;
}
Expand Down

0 comments on commit d023705

Please sign in to comment.