Skip to content

Redirects any user which hasn't setup two factor authentication yet to /2fa/

Notifications You must be signed in to change notification settings

aiwos/force-two-factor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

force-two-factor

Redirects any user which hasn't setup two factor authentication yet to /2fa/. Use together with the forked two-factor plugin at https://github.com/aiwos/two-factor featuring the frontend totp activation shortcode.

Instructions:

  • Download, install and activate the customized 'Two Factor' plugin: https://github.com/aiwos/two-factor/releases.
  • Make sure there is a page with '2fa' as slug and with the [two-factor-set-totp] shortcode as content.
  • Download, install and activate the 'Force Two Factor' plugin.
  • Now every user which hasn't set up a two factor authentication is automatically redirected to 'siteurl/2fa/'.
  • use 'aiwos/force-two-factor/force-2fa-condition' filter to add additional redirect conditions (don't redirect if false).

== changelog == v1.0.1

  • Use home_url in stead of site_url to support Bedrock sites.

About

Redirects any user which hasn't setup two factor authentication yet to /2fa/

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages