Closed (fixed)
Project:
Drupal core
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Sep 2004 at 15:14 UTC
Updated:
24 Feb 2006 at 06:01 UTC
Jump to comment: Most recent file
In the user_login function, user_deny is called even if $edit['name'] is empty (for example when the login form is displayed for the first time). I think this performs 2 unnecessary database queries.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | userlogin_0.patch | 10.9 KB | Zen |
| #4 | userlogin.patch | 11.09 KB | Zen |
| #3 | user_29.patch | 685 bytes | gordon |
| #2 | user_28.patch | 691 bytes | gordon |
Comments
Comment #1
Bèr Kessels commentedComment #2
gordon commentedhere is a small problem that fixes this. It actually reduces the queries by 4 not including and also the actual user authentication.
Comment #3
gordon commenteda little tidier patch.
Comment #4
Zen commentedResurrecting this issue. Attached patch:
if ($form['name'])rather thanif (isset($form['name']) && $form['name']). AFAIK, using both is unnecessary with the form API.That's about it. Please review.
Thanks :)
-K
Comment #5
Zen commentedComment #6
Zen commentedRe-rolled.
-K
Comment #7
moshe weitzman commentedcode reviewed and tested. i fixed a tiny problem with duplicate ids in the
tag as per http://drupal.org/project/comments/add/47785
Comment #8
fax8 commentedWhere is your patch moshe?
ids are still dupicate on userlogin_0.patch
Comment #9
moshe weitzman commentedi managed to lose my changes. lets just take Zen's most recent patch. it fixes this issue nicely.
Comment #10
dries commentedCommitted to HEAD. Thanks.
Comment #11
(not verified) commented