mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-58220 auth_oauth2: Fix new account creation
This was not allowing new accounts to be registered.
This commit is contained in:
parent
eca128bf47
commit
979d1f66dd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user