Noel Boss Posted August 30, 2017 Share Posted August 30, 2017 This module hooks into the login method to provide the possibility to login with the user's email address. This is my first module and it's very simple. Please provide feedback if you have any suggestions. Thanks The module can be found in the module repository: https://modules.processwire.com/modules/login-with-email/ or on github: https://github.com/noelboss/LoginWithEmail 3 Link to comment Share on other sites More sharing options...
cstevensjr Posted August 30, 2017 Share Posted August 30, 2017 23 minutes ago, noelboss said: This module hooks into the login method to provide the possibility to login with the user's email address. This is my first module and it's very simple. Please provide feedback if you have any suggestions. Thanks Any information on how to access this new module would be helpful? Thanks. 1 Link to comment Share on other sites More sharing options...
flydev Posted August 30, 2017 Share Posted August 30, 2017 (edited) Found it https://github.com/noelboss/LoginWithEmail And it work fine @noelboss Edited August 30, 2017 by flydev test 2 Link to comment Share on other sites More sharing options...
adrian Posted August 30, 2017 Share Posted August 30, 2017 Hi @noelboss - you might want to consider the issue of triggering a login attempt when there is no user for the entered email address: 2 Link to comment Share on other sites More sharing options...
kixe Posted August 30, 2017 Share Posted August 30, 2017 I have a similar module in use. For security reasons I verify if only one single user has the login email address in use. Emails aren't unique in PW like user names! Furthermore its useful to log login failures. Keep the ProcessWire Login Process safe! 2 Link to comment Share on other sites More sharing options...
Noel Boss Posted September 25, 2017 Author Share Posted September 25, 2017 Thanks @adrian since it hooks into the default login method, this should already happen. The module does only provide a username of the user to the login method if it finds a user with the provided email. Like so: Login attempt using default method > hook: check if entered username is in fact email > check if (only one) user exists with this email > return users username for login Default login method procedes. @kixe Thanks for pointing this out. I added this check like the new login module from ryan does it. A login with email is now only possible if the email is unique. 2 Link to comment Share on other sites More sharing options...
ceberlin Posted February 22, 2020 Share Posted February 22, 2020 NOTE - the great feature of this module has become an option in ProcessWire Core (newer than 3.0.150), also supporting 2FA there. Read more Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now