Problem/Motivation
Currently when the registration is blocked due to some error this is shown,
'Only existing users can log in. Contact system administrator.'
// Check if site configuration allows new users to register.
if ($this->registrationBlocked()) {
$this->loggerFactory
->get($this->getPluginId())
->warning('Failed to create user. User registration is disabled in Drupal account settings. Name: @name, email: @email.', array('@name' => $name, '@email' => $email));
drupal_set_message($this->t('Only existing users can log in. Contact system administrator.'), 'error');
return FALSE;
}
Proposed resolution
Change the message to correct one.
Remaining tasks
- Define which message will be displayed.
- Create patch
Comments
Comment #2
denutkarsh commentedComment #3
dishabhadra commentedSuggest the change message text.
Comment #4
gvsoWhat message do you propose?
Comment #5
denutkarsh commentedMaybe "User registration is disabled in Drupal account settings, try contacting system administrator for further assistance" ?
Comment #6
gvsoWhat about "User registration is disabled, please contact the administrator." to make it more consistent with the other messages?
Comment #7
c.nish2k3 commentedComment #8
c.nish2k3 commentedComment #9
c.nish2k3 commentedComment #10
c.nish2k3 commentedComment #11
denutkarsh commentedThis Looks Good To Me.
Comment #13
gvsoThanks everyone!