Closed (duplicate)
Project:
Drupal core
Version:
4.6.9
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2005 at 15:51 UTC
Updated:
26 Aug 2006 at 15:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
fago+1
now it works.
so, it doesn't display a message if the user enters nothing any more, but i think this is ok, because the login form works in the same way.
however, usually patches are based in drupal's root dir.
http://drupal.org/patch
Comment #2
fagoi've noticed a similar problem in user_view()
i think that's a php5 specific issue?
in php5 is something like
if ($account = user_load(array('uid' => $uid, 'status' => 1)))always true. perhaps we should fix user_load() instead?
Comment #3
fagoi've fixed this everywhere in core, where i found it and created a patch.
as this affects 4.6 too, here is the patch for 4.6
Comment #4
fagoand the patch for head
Comment #5
fagosry, i had attached the wrong patch for head.
this is the right one.
please review.
Comment #6
m3avrck commentedI've changed the status to CVS since this patch affects CVS as well and should go in there first before 4.6.3.
One problem, if I enter a valid email address, I'm getting the error 'Sorry the email address is not recognized'.
Otherwise patch looks great! However, it is slightly out of date against HEAD so should be rerolled to be clean, thanks!
Comment #7
m3avrck commentedComment #8
fagoright, i fixed that and rerolled the patch for HEAD.
Comment #9
Souvent22 commented+1. Worked well for me, and more useful to know your username was wrong rather than waiting on a email for nothing. :).
Comment #10
m3avrck commentedJust tested here, patch applies cleanly and works as advertised. All outstanding bugs have been fixed, +1 let's get this in, very nice little usability fix :)
Comment #11
fagoi fixed the patch for 4.6.
a short summarize of the changes:
Comment #12
fagothe issue has been fixed recently in head. now user_load() returns false. issue
Comment #13
magico commentedComment #14
fagowhat's wrong with the patch? why does it need work?
your review is quite short actually ;)
Comment #15
magico commentedIn this case, the only reason I marked it (code needs work) is because I've changed the version and so it must be worked for 4.6.9 and then reviewed :)
Don't worry.
Nothing will be left here, I've already reduced from 17 to 11 pages of bugs/features associated to 4.6
In the end, will be left with all patchs and bugs and they will have more time.
Comment #16
magico commentedBoth 4.7 and HEAD implement the user_load() function returning FALSE as stated by #12.
So, I'm marking this as duplicate in favour of "Request New Password in user.module fails in user_pass()" because it is a much smaller patch that has more chances to be applied (being consistent with the current HEAD)