Without complicating itself with storing, encrypting, and dealing with any type of passwords, the PasswordLessLogin class is an alternative to classic user login systems.
The way this class works is very simple. When a user will try to login, he must supply an email address.
The PasswordLessLogin class will generate a random link and send it to the user via email.
The user clicks on the link, which contains a verification code and he's automatically signed-in on the app/website.
Using a MySQL database, the class can store this verification codes and tell the user that has just used one of the login URLs if the code is valid or it has expired.
As you can see, there's no mention of any passwords or usernames, and the login system relying on the user's valid email address to login. If the user's email account hasn't been compromised, his account on the current app or website will be safe as well.
Usage instructions are included with the download package's README file.
Requirements:
- PHP 5.2 or higher
- PHPMailer
Comments not found