Added confirmed equal 1 to user creation

This commit is contained in:
Stephen Hellauer 2018-04-27 12:59:34 -05:00 committed by GitHub
parent 79b6b751b0
commit 8127ab82a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,6 +267,7 @@ class auth_plugin_userkey extends auth_plugin_base {
$user = $data; $user = $data;
unset($user['ip']); unset($user['ip']);
$user['auth'] = 'userkey'; $user['auth'] = 'userkey';
$user['confirmed'] = 1;
$user['mnethostid'] = $CFG->mnet_localhost_id; $user['mnethostid'] = $CFG->mnet_localhost_id;
$requiredfieds = ['username', 'email', 'firstname', 'lastname']; $requiredfieds = ['username', 'email', 'firstname', 'lastname'];