MDL-58220 auth_oauth2: Fix new account creation

This was not allowing new accounts to be registered.
This commit is contained in:
Damyon Wiese
2017-04-03 13:41:19 +08:00
parent eca128bf47
commit 979d1f66dd
+2 -1
View File
@@ -76,6 +76,7 @@ class auth extends \auth_plugin_base {
if ($verifyusername == $username) {
return true;
}
return false;
}
/**
@@ -369,7 +370,7 @@ class auth extends \auth_plugin_base {
$this->set_static_user_info($userinfo);
$user = get_complete_user_data('username', $userinfo['username']);
$user = authenticate_user_login($userinfo['username'], '');
if ($user) {
complete_user_login($user);