Fix for oauth signup

This commit is contained in:
David Bomba 2019-05-22 11:00:23 +10:00
parent ef25cfa320
commit 2334a3a870
2 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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