Skip to content

Commit

Permalink
Fix CS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Oct 3, 2016
1 parent 088a33d commit af36e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Auth/HybridAuthAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public function getUser(Request $request)
$providers = Hybrid_Auth::getConnectedProviders();
foreach ($providers as $provider) {
$adapter = Hybrid_Auth::getAdapter($provider);

return $this->_getUser($adapter);
}

Expand Down Expand Up @@ -216,6 +217,7 @@ public function authenticate(Request $request, Response $response)
if ($adapter) {
return $this->_getUser($adapter);
}

return false;
}

Expand Down
2 changes: 2 additions & 0 deletions src/Controller/HybridAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ public function authenticated()
$user = $this->Auth->identify();
if ($user) {
$this->Auth->setUser($user);

return $this->redirect($this->Auth->redirectUrl());
}

return $this->redirect($this->Auth->config('loginAction'));
}
}

0 comments on commit af36e58

Please sign in to comment.