25c25
< @@ -317,7 +317,7 @@ function force_password_change_insert_user(array $form, FormStateInterface $form
---
> @@ -320,7 +320,7 @@ function force_password_change_insert_user(array $form, FormStateInterface $form
29c29
< -		drupal_set_message(t('%name will be required to change their password upon their first login', ['%name' => $form_state->getValue('name')]));
---
> -		drupal_set_message(t('%name will be required to change their password upon their first login', array('%name' => $form_state->getValue('name'))));
58c58
< +						\Drupal::messenger()->addMessage(t('This site requires that you change your password every @time_period. Please change your password to proceed.', ['@time_period' => $time_period]));
---
> +						$this->messenger->addMessage(t('This site requires that you change your password every @time_period. Please change your password to proceed.', ['@time_period' => $time_period]));
