Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hi is it possible to modify the login fields required to login into wp-admin? Say to use the email address instead of the username together with the password to gain access. How would I go about doing that? thanks

share|improve this question

1 Answer 1

up vote 1 down vote accepted

There are plugins which help to do this:

With http://wordpress.org/extend/plugins/wp-email-login/ people can use their email address instead of their username to log into you WordPress install.

Using http://wordpress.org/extend/plugins/theme-my-login/ you can have the WordPress login included in your design, and allow users to modify their account information without logging into the backend.

share|improve this answer
    
Thanks but what about if I want to extend the login further and ask for more fields, apart from the email. Is there maybe a manual may to modify the login system, or more customisable plugins? –  wpmayor Mar 19 '11 at 16:46
    
I did a bit of digging. It looks like there are hooks you can override to make this happen, but it really doesn't look straight-forward. You would have to override the form with the login_form hook ( adambrown.info/p/wp_hooks/hook/login_form ), then override how logging in is handled using wp_login ( adambrown.info/p/wp_hooks/hook/wp_login ). You would have to do your own handling of storing the login information in cookies, and dealing with a failed login. Basically, I think this is something you'd really have to hack WordPress to make happen. –  Gavin Anderegg Mar 19 '11 at 21:51
    
I see, thanks Gavin. –  wpmayor Mar 22 '11 at 0:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.