app/controllers/AuthController.php: in oauthAction() redirect new users to register page even if their email is taken (they can change it now)
This commit is contained in:
parent
dde8818296
commit
4ff298e7ea
1 changed files with 0 additions and 6 deletions
|
|
@ -90,12 +90,6 @@ class AuthController extends ControllerBase
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (User::findFirstByEmail($data->getEmail())) {
|
|
||||||
$this->flash->error('The email address is already in use.');
|
|
||||||
$this->response->redirect('/login');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->session->set('auth:register:data', $data);
|
$this->session->set('auth:register:data', $data);
|
||||||
$this->response->redirect(['for' => 'user-register']);
|
$this->response->redirect(['for' => 'user-register']);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Reference in a new issue