app/controllers/AuthController.php: in oauthAction() use User::findFirstByEmail()
This commit is contained in:
parent
1e46302267
commit
1d1c1c29ce
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ class AuthController extends ControllerBase
|
||||||
|
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
|
|
||||||
if (User::findFirstByUsernameOrEmail($data->getEmail())) {
|
if (User::findFirstByEmail($data->getEmail())) {
|
||||||
$this->flash->error('The email address is already in use.');
|
$this->flash->error('The email address is already in use.');
|
||||||
$this->response->redirect('/login');
|
$this->response->redirect('/login');
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Reference in a new issue