Hi, running Drupal 5.1, 2007-01-29.

I found an inconsistency in user.module around line 932:

form_set_error('login', t('Sorry, unrecognized username or password. <a href="@password">Have you forgotten your password?</a>', array('@password' => url('user/password'))));

It should be:

form_set_error('name', t('Sorry, unrecognized username or password. <a href="@password">Have you forgotten your password?</a>', array('@password' => url('user/password'))));

Other parts of the module are using 'login' instead of 'name' as element name in form_set_error().

Comments

philmcdonnell’s picture

Status: Active » Closed (fixed)

Hello,

I believe you posted this in the wrong section. This section is for the user_maintenance module, not for the user.module which is part of Drupal core.

Regards,
Phil