Verified Commit ec6f344d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3110761 by Vivek Panicker, anagomes, lucassc, apaderno,...

Issue #3110761 by Vivek Panicker, anagomes, lucassc, apaderno, Sivaji_Ganesh_Jojodae, bnjmnm: Make more explicit the email address is necessary to recover the password

(cherry picked from commit 22582080)
parent 263d8f47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ public function form(array $form, FormStateInterface $form_state) {
    $form['account']['mail'] = [
      '#type' => 'email',
      '#title' => $this->t('Email address'),
      '#description' => $this->t('A valid email address. All emails from the system will be sent to this address. The email address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by email.'),
      '#description' => $this->t('The email address is not made public. It will only be used if you need to be contacted about your account or for opted-in notifications.'),
      '#required' => !(!$account->getEmail() && $user->hasPermission('administer users')),
      '#default_value' => (!$register ? $account->getEmail() : ''),
    ];