Closed (fixed)
Project:
Custom username validation
Version:
6.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
3 Sep 2009 at 23:03 UTC
Updated:
24 Oct 2009 at 10:30 UTC
On line 69, this module is overwriting any other possible #validate hooks that a module might want to add. Instead, it should look like this:
$form['#validate'][] = 'custom_username_validation_username_validate';
Comments
Comment #1
Schneck commentedThanks for the hint, should be fixed and available for download soon. Since CVS totally sucks, I hope I tagged it correctly and the bundle script does handle it.
Comment #2
Schneck commentedComment #3
sphism commentedWeird, this doesn't actually fix the problem.
using drupal for firebug i see that you can only ever get 1 validate function in the list, it's weird. something is overriding the second one????
I've marked this as critical since it overwrites the drupal user validate function users can sign up with same username and or email address as someone else. But then drupal falls over when it tries to actually add them in and so it looks like they have registered but they haven't.
matt
Comment #4
Schneck commentedHi there,
you're totally right, and i'm terribly sorry that this relict from ancient times called "cvs" costs me so much time... Please download the 1.2, I committed the same patch again, downloaded the result and checked the source. Should be fine now.
Please give me feedback whether it's running as expected now.
Comment #5
Schneck commentedComment #6
Schneck commented