X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2Fauth%2FResetPasswordSecondaryAuthenticationProvider.php;h=c831fc8c440d1db03123963af089b876a41a0e5c;hb=e70b5b33095c3db1fa2332d7184f3ae80c1dd571;hp=f11a12c42143fca2b4c76d51a5db91738c862fc2;hpb=04d739cb32789cfc2631e6ac5f7d4a286388d833;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php b/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php index f11a12c421..c831fc8c44 100644 --- a/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php +++ b/includes/auth/ResetPasswordSecondaryAuthenticationProvider.php @@ -58,6 +58,7 @@ class ResetPasswordSecondaryAuthenticationProvider extends AbstractSecondaryAuth /** * Try to reset the password + * @param \User $user * @param AuthenticationRequest[] $reqs * @return AuthenticationResponse */ @@ -95,7 +96,7 @@ class ResetPasswordSecondaryAuthenticationProvider extends AbstractSecondaryAuth } } - $needReq = isset( $data->req ) ? $data->req : new PasswordAuthenticationRequest(); + $needReq = $data->req ?? new PasswordAuthenticationRequest(); if ( !$needReq->action ) { $needReq->action = AuthManager::ACTION_CHANGE; }