Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Some fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shehi committed Apr 22, 2018
1 parent bbcdea6 commit a91812e
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 422 deletions.
7 changes: 5 additions & 2 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function showLoginForm()
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
* @throws \App\Exceptions\Common\ValidationException
* @throws ValidationException
* @throws \Illuminate\Validation\ValidationException
*/
public function loginViaWeb(Request $request)
{
Expand Down Expand Up @@ -193,7 +194,9 @@ protected function registerViaOAuth(SocialiteUser $oauthUserData, $provider)
$ownerAccount->save();
}

($doLinkOAuthAccount = $this->linkOAuthAccount($oauthUserData, $provider, $ownerAccount)) && app('auth.driver')->login($ownerAccount, true);
if ($doLinkOAuthAccount = $this->linkOAuthAccount($oauthUserData, $provider, $ownerAccount)) {
app('auth.driver')->login($ownerAccount, true);
}

event(new LoggedIn($ownerAccount, $provider));

Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a91812e

Please sign in to comment.