X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FEmailNotificationSecondaryAuthenticationProvider.php;h=0878c34f42870f4de07d1a0c4c16a8fbbe17e825;hb=b6cd5421b915d3f74928d00f3fd3af34b7ebc2a6;hp=a4855318b5ac89aacbb1d8dcc284c9d75bc30270;hpb=61898ad28ed69c5b391eb43e0db9386279b9612c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/EmailNotificationSecondaryAuthenticationProvider.php b/includes/auth/EmailNotificationSecondaryAuthenticationProvider.php index a4855318b5..0878c34f42 100644 --- a/includes/auth/EmailNotificationSecondaryAuthenticationProvider.php +++ b/includes/auth/EmailNotificationSecondaryAuthenticationProvider.php @@ -51,7 +51,7 @@ class EmailNotificationSecondaryAuthenticationProvider && !$this->manager->getAuthenticationSessionData( 'no-email' ) ) { // TODO show 'confirmemail_oncreate'/'confirmemail_sendfailed' message - wfGetDB( DB_MASTER )->onTransactionIdle( + wfGetDB( DB_MASTER )->onTransactionCommitOrIdle( function () use ( $user ) { $user = $user->getInstanceForUpdate(); $status = $user->sendConfirmationMail();