Archived
1
0
Fork 0

app/controllers/AuthController.php: in oauthAction() use User::findFirstByEmail()

This commit is contained in:
Henrik Hautakoski 2018-08-16 19:00:01 +02:00
parent 1e46302267
commit 1d1c1c29ce
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -83,7 +83,7 @@ class AuthController extends ControllerBase
if ($result === false) {
if (User::findFirstByUsernameOrEmail($data->getEmail())) {
if (User::findFirstByEmail($data->getEmail())) {
$this->flash->error('The email address is already in use.');
$this->response->redirect('/login');
return;