MFA build in PHP
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Frank Bischof 847e509a1f Commit version 1.0 2 months ago
GoogleAuthenticator.php Commit version 1.0 2 months ago
README.md Commit version 1.0 2 months ago
check_mfa.php Commit version 1.0 2 months ago
generate.php Commit version 1.0 2 months ago

README.md

MFA / 2FA for PHP (Using GoogleAuthenticator)

Add the GoogleAuthenticator.php file in your application.

Generate a secret and store this in a database with the user. This secret should be unknown to anybody and is needed for the MFA confirmation.

Scan the QR code generated

Confirm the MFA code using your MFA application on your phone.

Note

For this test you have to put the code you generated into the check_mfa.php file and use a $_GET['code'] to check if the code is working or not.

You should build this using a proper POST!