Merge "Move HistoryAction CSS from mediawiki.legacy.shared"
[lhc/web/wiklou.git] / includes / auth / ResetPasswordSecondaryAuthenticationProvider.php
index f87a762..dd97830 100644 (file)
@@ -99,6 +99,8 @@ class ResetPasswordSecondaryAuthenticationProvider extends AbstractSecondaryAuth
                if ( !$needReq->action ) {
                        $needReq->action = AuthManager::ACTION_CHANGE;
                }
+               $needReq->required = $data->hard ? AuthenticationRequest::REQUIRED
+                       : AuthenticationRequest::OPTIONAL;
                $needReqs = [ $needReq ];
                if ( !$data->hard ) {
                        $needReqs[] = new ButtonAuthenticationRequest(