From 60529b350e2f6b246c329ecdb886ed2596b67374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Thu, 16 Nov 2017 13:41:15 +0100 Subject: 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. --- MoodlePasswordPrimaryAuthenticationProvider.php | 3 +-- 1 file changed, 1 insertion(+), 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(); } -- cgit v1.2.3