Hi,

If you're using LDAP authentication, and you attempt to login with empty username and password fields, you get the following messages:

* Username field is required.
* Password field is required.
* The username has been blocked.

The last message should probably not appear unless you've actually provided a username ... and should those 'em' tags be displaying like that, anyway? Source reveals these to be

<li>The username <em>&lt;em&gt;&lt;/em&gt;</em> has been blocked.</li>

Comments

kreaper’s picture

Assigned: Unassigned » kreaper
Status: Active » Fixed

poietes

The hook hook_validate is throwing that error:

  if (isset($form_values['name'])) {
    if (user_is_blocked($form_values['name'])) {
      // blocked in user administration
      form_set_error('login', t('The username %name has been blocked.', array('%name' => theme('placeholder', $form_values['name']))));
    }

Those errors are coming from the core and can also be found in a fresh/vanilla install of the code. The third error is actually coming from the "Access rules" settings.

With regards to the error message itself, the form_set_error is erroneously calling the theming layer. I've patched the HEAD against that error.

kreaper’s picture

Status: Fixed » Closed (fixed)