Loading config/install/sharedemail.settings.yml +1 −1 Original line number Diff line number Diff line langcode: en sharedemail_msg: 'WARNING: The e-mail address you are using, has already been registered on this site by another user. You should be aware that personal information such as password resets will be sent to this address. We strongly recommend changing your registered address to a different e-mail address. You can do this at any time from your account page when you login.' sharedemail_msg: 'The e-mail address you are using, has already been registered on this site by another user. You should be aware that personal information such as password resets will be sent to this address. We strongly recommend changing your registered address to a different e-mail address. You can do this at any time from your account page when you login.' sharedemail_allowed: '' sharedemail.module +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ function _sharedemail_form_submit($form, &$form_state) { ->loadByProperties(['mail' => $form['account']['mail']['#value']]); if ($users !== NULL && count($users) > 1) { $config = \Drupal::config('sharedemail.settings'); \Drupal::messenger()->addStatus($config->get('sharedemail_msg')); \Drupal::messenger()->addWarning($config->get('sharedemail_msg')); } } Loading Loading
config/install/sharedemail.settings.yml +1 −1 Original line number Diff line number Diff line langcode: en sharedemail_msg: 'WARNING: The e-mail address you are using, has already been registered on this site by another user. You should be aware that personal information such as password resets will be sent to this address. We strongly recommend changing your registered address to a different e-mail address. You can do this at any time from your account page when you login.' sharedemail_msg: 'The e-mail address you are using, has already been registered on this site by another user. You should be aware that personal information such as password resets will be sent to this address. We strongly recommend changing your registered address to a different e-mail address. You can do this at any time from your account page when you login.' sharedemail_allowed: ''
sharedemail.module +1 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ function _sharedemail_form_submit($form, &$form_state) { ->loadByProperties(['mail' => $form['account']['mail']['#value']]); if ($users !== NULL && count($users) > 1) { $config = \Drupal::config('sharedemail.settings'); \Drupal::messenger()->addStatus($config->get('sharedemail_msg')); \Drupal::messenger()->addWarning($config->get('sharedemail_msg')); } } Loading