diff options
author | David Mudrák <david@moodle.com> | 2017-11-16 13:41:15 +0100 |
---|---|---|
committer | David Mudrák <david@moodle.com> | 2017-11-16 13:45:51 +0100 |
commit | 60529b350e2f6b246c329ecdb886ed2596b67374 (patch) | |
tree | c0a5f5bb93b8cd4112e6153c2f0b649690a75a84 | |
parent | f15141d6fd5111ebcc491b8259580a37d23356c0 (diff) | |
download | AuthMinetest-60529b350e2f6b246c329ecdb886ed2596b67374.tar.gz AuthMinetest-60529b350e2f6b246c329ecdb886ed2596b67374.tar.bz2 AuthMinetest-60529b350e2f6b246c329ecdb886ed2596b67374.zip |
Automatically confirm all emails from moodle.org profiles
Emails marked as not confirmed in MW can't be sent any notification
emails. There is no point of users having to confirm their moodle.org
emails.
-rw-r--r-- | MoodlePasswordPrimaryAuthenticationProvider.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/MoodlePasswordPrimaryAuthenticationProvider.php b/MoodlePasswordPrimaryAuthenticationProvider.php index 1fb9891..2799e9a 100644 --- a/MoodlePasswordPrimaryAuthenticationProvider.php +++ b/MoodlePasswordPrimaryAuthenticationProvider.php @@ -195,8 +195,7 @@ class MoodlePasswordPrimaryAuthenticationProvider extends AbstractPrimaryAuthent } $user->setEmail( $userinfo->email ); - - // TODO This should not be needed once https://bugzilla.wikimedia.org/show_bug.cgi?id=13963 is fixed. + $user->confirmEmail(); $user->saveSettings(); } |