Coder Social home page Coder Social logo

matheusmisumoto / php-2fa Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 2.0 26 KB

Example of two factor authentication login form using PHP.

Home Page: https://matheusmisumoto.dev/tecnologia/desenvolvimento-web/2fa-autenticacao-em-dois-fatores-php.html

License: GNU General Public License v3.0

PHP 100.00%
2fa 2factor two-factor-authentication 2fa-security learn

php-2fa's Introduction

PHP Two-Factor Authentication

Example of two factor authentication login form using PHP without database.

The login data is stored on a PHP file, hidden from the user. Its content is also unreachable from direct access.

Configuration

The config.php file contains the settings and the translation of this script.

The data storage

You can register new users by accessing admin.php.

The data, including an encrypted password, is stored on a PHP file, which name is defined on settings.

If there is no data file, the script will create one.

The data file can also be deleted by clicking on a button on the same page.

Login process

The user is first prompted to enter his username and password. A reCAPTCHA verification is also required.

If username, password and reCAPTCHA are correct, the script will send an email to the respective user with a unique access code.

Then, the user is required to type and submit the access code to access the success page.

Any failures during the process results in a message error displayed to the user.

php-2fa's People

Contributors

matheusmisumoto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.