Getting the username entered by the user after he hits submit on the login form, irrespective of whe
Posted
by simonr
on Stack Overflow
See other posts from Stack Overflow
or by simonr
Published on 2010-05-10T15:02:20Z
Indexed on
2010/05/10
15:24 UTC
Read the original article
Hit count: 125
Duplicate of http://stackoverflow.com/questions/2803425
Hello,
When a user enters his login information and hits submit, irrespective of whether the login credentials entered by the user were correct or not, i want my function to be called. In this function, i need the username entered by the user. I think i cannot use the login op of hook_user because its called only when the user has successfully logged in. So, how can i achieve the above functionality ?
Some sample code would be really appreciated. Please help.
Thank You.
© Stack Overflow or respective owner