reflar/twofactor

Add factor authentication to Flarum

This package's canonical repository appears to be gone and the package has been frozen as a result.

Installs: 1 451

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 3

Language:JavaScript

Type:flarum-extension

0.1.3 2019-12-17 18:41 UTC

README

GitLab license Latest Stable Version

Importing from the old twofactor

  • Simply install this, everything will be transfered to the new extension automatically
Please read the install guide!

A Flarum extension that increases security by adding TOTP and Twillio two factor authentication

Usage

  • As a user, go to your account settings page and follow the prompts to setup twofactor
  • Admins have the option to link their Twillio account to allow users to recieve codes via text

Installation

This extension requires a bit more setup. These steps are optional but will greatly increase the security of this plugin.

First install it with composer:

composer require reflar/twofactor

Then login and enable the extension.

!!Make sure to undo this if you ever uninstall this extension!!

If you have Apache, add these lines right after the "RewriteEngine on"

  RewriteCond %{REQUEST_URI} ^/login
  RewriteRule ^(.*)$ - [F,L]

If you have Nginx add these lines to your server block:

  location ~ ^/login {
                deny all;
  }

Q: What does this do? A: This extension uses a custom login handler and therefore a different url to send the login request to. If someone changes the url back to the default they could bypass the twof factor auth.

To Do

  • Requests?

Issues

  • None known

Links