mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 23:14:34 -04:00
Fix for oauth signup
This commit is contained in:
parent
ef25cfa320
commit
2334a3a870
@ -124,7 +124,7 @@ class LoginController extends BaseController
|
|||||||
return $this->itemResponse($user);
|
return $this->itemResponse($user);
|
||||||
//return redirect($this->redirectTo); //todo return USERACCOUNT json
|
//return redirect($this->redirectTo); //todo return USERACCOUNT json
|
||||||
}
|
}
|
||||||
else if(MultiDB::checkUserEmailExists($user->getEmail()))
|
else if(MultiDB::checkUserEmailExists($socialite_user->getEmail()))
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->errorResponse(['message'=>'User exists in system, but not with this authentication method'], 400);
|
return $this->errorResponse(['message'=>'User exists in system, but not with this authentication method'], 400);
|
||||||
|
@ -32,7 +32,6 @@ Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('passw
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('auth/{provider}', 'Auth\LoginController@redirectToProvider');
|
Route::get('auth/{provider}', 'Auth\LoginController@redirectToProvider');
|
||||||
Route::get('auth/{provider}/callback', 'Auth\LoginController@handleProviderCallback');
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Authenticated User Routes
|
* Authenticated User Routes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user