What is the best PHP login class? #login
Edit
by larry stanley - 8 years ago (2016-08-21)
Login class with forgot password, register, login
| I need to login customers with encrypted passwords, handle forgotton passwords, user registration, etc.. |
Ask clarification
1 Recommendation
PHP User Login class: Register, login and recover users in a database
This class can register, login and recover users in a database.
It can perform several types of user account records stored in a database. Currently it can:
- Retrieve an account by login name
- Retrieve the list of registered users
- Add a new user record
- Update or delete a user record
- Change the user login name or password
- Check if an account exists with a given login name
- Authenticate a user with a login name and password, and start a session if the password is correct
- Logout the current logged user ending his session
- Recover a user account resetting his password
The class database supports several types of databases using PDO like MySQL, Microsoft SQL server and Sybase.
| by Oleg Zorin package author 75 - 8 years ago (2016-10-12) Comment
Class provide basic user routine.
User password hash generated using random salt. So each user password hash has its own salt (even in case of two passwords for one user).
You can use it as is (just add required fields in class $_definition variable) or you can get ideas of method realization and use them in your own class. |