Coder Social home page Coder Social logo

phpmta's Introduction

phpMTA

PHP Message Token Authentication

What is phpMTA?

phpMTA is a PHP library that creates an authentication method based solely on email (or other message types).

How does it work?

The authentication is based on the acces to a mail address. By entering the mail address, a token is send to this address. This token works as one time password and has to be entered (alternatively a login link to click on can be sent) to login. Once logged in it works just as a normal authentication method would work.

Why?

This library addresses the password problem. With this authentication no password is stored on the server and the user does not need to remember a password. All you need is an email address.

How can I use it?

All pages that need authentication need to include auth.php. The is_authenticated() method returns True if the user is logged in and False if not. On the login page use send_token() which takes a mail address as POST argument and sends a random token to this email.The token is also sent via PHP to the authenticate() method which logs the user in and sets cookies.
To logout just call deauthenticate() which destroys the session and deletes the cookies.

To configure the parameters see the values in conf.php.

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.