Getting the username entered by the user after he hits submit on the login form, irrespective of whe
- by simonr
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.