Closed (fixed)
Project:
Drupal core
Version:
4.7.x-dev
Component:
user system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2005 at 15:55 UTC
Updated:
25 Jan 2007 at 02:35 UTC
If no username or password are given in the user login form, a 'The username has been blocked.' message is shown. In previous versions, the user would simply be returned to a fresh login form.
The attached patch solves this.
| Comment | File | Size | Author |
|---|---|---|---|
| user_login_user_blocked.patch | 423 bytes | kumo |
Comments
Comment #1
Steve Dondley commentedempty() is the wrong function to use. A value of "0" for the username will return false. I think the problem lies within the form validation module. I'm working on this bug now. See http://drupal.org/node/33812
Comment #2
killes@www.drop.org commentedThis is still an issue.
Comment #3
markus_petrux commented@steve: that issue has been closed. And the patch was related to checkboxes.
I agree with killes. This is still an issue. If you set the user/pass fields empty in the form, you get the following error messages:
Which means
$form_values['name']is set (empty string).Sorry, I reported the same thing here: http://drupal.org/node/45709 (now marked as dup)
I was also using !empty in my patch. I believe, though, that the same validation rule should be applied to the registration form. You can now register '0' as user name.
What about checking for ($form_values['name'] !== '') here ???
Comment #4
Jaza commentedBug no longer exists in Drupal 5. Closing.