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

denutkarsh created an issue. See original summary.

denutkarsh’s picture

Issue summary: View changes
dishabhadra’s picture

Suggest the change message text.

gvso’s picture

What message do you propose?

denutkarsh’s picture

Maybe "User registration is disabled in Drupal account settings, try contacting system administrator for further assistance" ?

gvso’s picture

Issue summary: View changes

What about "User registration is disabled, please contact the administrator." to make it more consistent with the other messages?

c.nish2k3’s picture

Assigned: Unassigned » c.nish2k3
c.nish2k3’s picture

c.nish2k3’s picture

Status: Active » Needs review
c.nish2k3’s picture

Assigned: c.nish2k3 » Unassigned
denutkarsh’s picture

Status: Needs review » Reviewed & tested by the community

This Looks Good To Me.

  • gvso committed 570dca7 on 8.x-1.x
    Issue #2855756 by c.nish2k3: Correct message when registrations is...
gvso’s picture

Status: Reviewed & tested by the community » Fixed

Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.