I was having problems logging in (registration seemed OK). So I simplified/updated the code a bit. We now register an #element_validate handler on the name element since those run before form-wide validation. We want to run early so the login form looks as "normal" as possible as it proceeds through validation. I also changed from form_set_value() to just setting $form_state['values']['name'] since thats clearer and supported in D6.
| Comment | File | Size | Author |
|---|---|---|---|
| mw.patch | 1.61 KB | moshe weitzman |
Comments
Comment #1
moshe weitzman commentedactually, that form_set_value() looks fine if you want to keep it.
Comment #2
moshe weitzman commentedcommitted with permission.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.