“5sec Google Authenticator - Two Step Login Protection” Documentation by “Web factory Ltd” v1.20


“5sec Google Authenticator” WordPress plugin

Created: 2013/10/04, revision 4
By: Web factory Ltd
Support: only via CodeCanyon

Thank you very much for purchasing our premium WordPress plugin. If you have any questions that are beyond the scope of this help file, please feel free to email us via our user page contact form. Have a good one!

Table of Contents

  1. Getting started guide
  2. Installation & Upgrade
  3. Settings
  4. How does it work
  5. FAQ
  6. Sources and Credits
  7. Online demo and help

Getting started guide - top

Please read this! It'll take you just a minute and ensure everything goes smoothly and you don't have any problems.

5sec Google Authenticator requires WordPress v3.6 or higher to function properly!

  1. Install the plugin as you would do with any other (details are below if you need them)
  2. Depending on the mobile phone you have install the iPhone, Android or BlackBerry Google Authenticator app
  3. Open the app, click "add an account" (plus sign icon) and choose "scan barcode". Point your phone's camera to the QR code in the email you just received titled "IMPORTANT - 5sec Google Authenticator plugin is activated" (check SPAM folder if necessary)
  4. You're done! Next time you want to login to your site enter the usual username & password combination and the OTP the app generates. Please note that each OTP is valid for only 2 minutes so always use a fresh one.

Installation - top

Installation

  1. Download the ZIP package from CodeCanyon.
  2. Open WordPress admin and go to Plugins -> Add New -> Upload. Browse for the ZIP file 5sec-google-authenticator.zip on your computer and hit "Install Now".
  3. Activate the plugin.

Upgrade - method #1, it wont reset plugin's settings, security or QR codes

  1. Do NOT deactivate the plugin.
  2. Use FTP to locate folder wp-content/plugins/5sec-google-authenticator/
  3. Overwrite all files in that folder with new ones downloaded from CodeCanyon

Upgrade - method #2, it'll reset plugin's settings, security and QR codes

  1. Deactivate and delete the plugin in your WP admin -> Plugins.
  2. Use the Add New -> Upload function to upload the new plugin ZIP file.
  3. Activate the plugin.

Settings - top

Global plugin settings are available under the Settings - 5sec Google Authenticator menu. Following settings can be adjusted;

Per-user settings are available in each users' profile. Following settings can be adjusted;

How does it work - top

Traditional one-step authentication uses a username (in most cases not a secret) and a password (only known to the user) to identify a user. If someone steals the password he gains full access to the protected resources. Two step login adds another protection layer.
Username and password are still used and a third piece of data is required to login - OTP (one time password). This password is generated for you every time you need to login by a OTP device often referred as a token device. In our case it's the phone app. OTP is time bound meaning that once it's generated have only have 2 minutes to use it. If someone steals one OTP it won't do them much good. Also if you're tricked into clicking "save my password" no harm will be done because the saved OTP will be useless in two minutes. Same goes if your username & password are compromised in any other way. The attacker won't be able to login because they don't have a valid OTP.
This technology has been utilised by banks for years and has been proven as very reliable. It does add some overhead for the end user as he has to generate an OTP for each login but the security benefits are more than obvious.

How does the plugin know which OTP is valid and which not?
In order for an OTP to be valid it has to meet two requirements: it can't be too "old" and it has to belong to your account. You can't use an OTP generated for somebody elses account. Each account has a secret key. That key is knows to WordPress and to your phone (that's why you have to scan the QR code). Based on the key the phone generates an OTP and again, based on the key WordPress confirms that the entered OTP belongs to the specified user. If your secret key changes you won't be able to login.

FAQ - top

Will this plugin slow my site down?

Absolutely not. Overhead that this plugin adds to WordPress is absolutely minimal.

Will it work on my theme?

Yes, it's theme independant. If your theme has a custom login form make sure it uses all actions and filters the default WP login form does.

Will it work with plugin XYZ?

If the plugin is security related or modifies the login form there might be conflicts.

Is this plugin safe to use?

Of course.

I can't login. It always says the OTP is wrong or expired.

Make sure your server's and phone's clocks are in sync. A difference of up to one minute is OK. Also make sure you scanned the right QR code. If you deactivated and activated the plugin all the QR codes will be regenerated and you have to use the latest one.

I locked myself out of my site.

As a last resort you can always delete/rename the plugin's folder via FTP and it'll deactivate.

E) Sources and Credits - top

5sec Google Authenticator uses the following external assets:

Once again, thank you so much for purchasing this premium WordPress plugin. As stated at the beginning, we'd be glad to help you if you have any questions relating to this plugin. We'll do our best to assist. If you have a more general question related to plugins on CodeCanyon, you might consider visiting the forums and asking your question in the "Item Discussion" section.