Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Geeklog-Core/geeklog
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed May 15, 2021
2 parents 7132a0a + 7c38a97 commit 2d9b9fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public_html/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -1273,12 +1273,14 @@ function USER_tryTwoFactorAuth()
isset($_GET['oauth_login'])
) {
// Here we go with the handling of OAuth authentication.
$oauth_login = Geeklog\Input::fGet('oauth_login');
$modules = SEC_collectRemoteOAuthModules();
$active_service = (count($modules) == 0) ? false : in_array($_GET['oauth_login'], $modules);
$active_service = (count($modules) == 0) ? false : in_array($oauth_login, $modules);
if (!$active_service) {
$status = -1;
COM_errorLog("OAuth login failed - there was no consumer available for the service:" . $_GET['oauth_login'], 1);
COM_errorLog("OAuth login failed - there was no consumer available for the service:" . $oauth_login, 1);
} else {
// Remember these super global variables have not been validated beyond if the oauth login exists and has been enabled
$query = array_merge($_GET, $_POST);
$service = $query['oauth_login'];

Expand Down

0 comments on commit 2d9b9fe

Please sign in to comment.