2017 © Pedro Peláez
 

library twofactor

This plugin provides a Two Factor Authentication interface for logging into the wp-admin

image

danielgelling/twofactor

This plugin provides a Two Factor Authentication interface for logging into the wp-admin

  • Tuesday, February 16, 2016
  • by danielgelling
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Two Factor Authentication Wordpress Admin Plugin

Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

TwoFactorAuth is a Wordpress plugin that will add an extra layer of security to your Wordpress installation. It sends a text message via the MessageBird API when someone tries to login to the Wordpress Admin., (*2)

Installation

Via composer

Installating the TwoFactorAuth plugin is a breeze with composer. You can get composer at https://getcomposer.org/., (*3)

composer require danielgelling/twofactor:^1.0

Via Github

Installing the TwoFactorAuth plugin via Github can either be done by cloning the repository into the wp-content/plugins directory or downloading a zip file from the repo page., (*4)

$ cd /path/to/project/wp-content/plugins
$ git clone https://github.com/danielgelling/twofactorauth.git --branch noob --single-branch twofactorauth

Or unzip the zipped plugin file into the plugins directory., (*5)

Configuration

Turning on the lights

First we'll need to add the plugins configuration file to wp-config.php. We can do this by adding the following:, (*6)

/*
|--------------------------------------------------------------------------
| Two Factor Authentication Configuration
|--------------------------------------------------------------------------
|
| Here we require the configuration file for the twofactorauth plugin.
|
*/

require_once dirname(__FILE__) . '/wp-content/plugins/twofactorauth/config.php';

Then we need to copy the example config file by executing the following command in the shell (assuming we are in the wp-content/plugins/twofactorauth directory):, (*7)

$ cp config.example.php config.php

Having done this, we can add our MessageBird API key, the amount of days after which we want to prompt the user to authenticate himself by a text message (so how long an auth_code will be valid) we do this in days and the database table we want to use to store our auth_codes):, (*8)

define('MESSAGEBIRD_API_KEY', 'live_S0m3Rand0MapiKeY');
define('TWO_FACTOR_EXPIRES_IN', 30);
define('TWO_FACTOR_AUTH_TABLE', 'two_factor_logins');

Then we want to define the sender and the content of the text message:, (*9)

define('CODE_TEXT_MESSAGE_SENDER', 'Your company\'s name');
define('CODE_TEXT_MESSAGE_CONTENT', 'Your code is: ');

Least but not last, we need to define our invalid code error message:, (*10)

define('CODE_INVALID_MESSAGE', 'Invalid code');
define(
    'CODE_INVALID_MESSAGE_DESCRIPTION',
    'You provided an invalid authentication code.'
);

Activating the plugin

The last thing we need to do is activate the plugin in the wp-admin. This will be the last time you sign in without Two Factor Authentication, at least for the amount of days you specify to prompt for a new authentication., (*11)

So, the only thing we need to do now is click activate and our Wordpress Admin is more secure. Awesome!, (*12)

, (*13)

The Versions

16/02 2016

dev-master

9999999-dev

This plugin provides a Two Factor Authentication interface for logging into the wp-admin

  Sources   Download

MIT

The Requires

 

by Daniel Gelling

15/02 2016

dev-noob

dev-noob

This plugin provides a Two Factor Authentication interface for logging into the wp-admin

  Sources   Download

MIT

The Requires

 

by Daniel Gelling

12/02 2016

v1.0.1

1.0.1.0

This plugin provides a Two Factor Authentication interface for logging into the wp-admin

  Sources   Download

MIT

The Requires

 

by Daniel Gelling

12/02 2016

v1.0.0

1.0.0.0

This plugin provides a Two Factor Authentication interface for logging into the wp-admin

  Sources   Download

MIT

The Requires

 

by Daniel Gelling