diff --git a/core/modules/user/src/Controller/UserController.php b/core/modules/user/src/Controller/UserController.php index 1f79454..91bc315 100644 --- a/core/modules/user/src/Controller/UserController.php +++ b/core/modules/user/src/Controller/UserController.php @@ -128,18 +128,19 @@ public function resetPassRedirect(Request $request, $uid, $timestamp, $hash, $ac $redirect = $this->checkUserHashTimestamp($uid, $timestamp, $hash, $timeout, $user); if ($redirect === TRUE) { user_login_finalize($user); - $this->logger->notice('User %name used one-time login link at time %timestamp.', array('%name' => $user->getDisplayName(), '%timestamp' => $timestamp)); + $this->logger->notice('User %name used one-time login link at time %timestamp.', ['%name' => $user->getDisplayName(), '%timestamp' => $timestamp]); drupal_set_message($this->t('You have just used your one-time login link. It is no longer necessary to use this link to log in. Please change your password.')); - // Let the user's password be changed without the current password check. + // Let the user's password be changed without the current password + // check. $token = Crypt::randomBytesBase64(55); $_SESSION['pass_reset_' . $user->id()] = $token; $redirect = $this->redirect( 'entity.user.edit_form', - array('user' => $user->id()), - array( - 'query' => array('pass-reset-token' => $token), + ['user' => $user->id()], + [ + 'query' => ['pass-reset-token' => $token], 'absolute' => TRUE, - ) + ] ); } }