{"repo":"roelvanhintum/craft-twofactorauthentication","free":true,"listed":false,"github":"https://github.com/roelvanhintum/craft-twofactorauthentication","clone":"git clone https://github.com/roelvanhintum/craft-twofactorauthentication.git","description":"Craft plugin for two-factor or two-step login using Time Based OTP.","language":"PHP","stars":36,"topics":["craftcms-plugin","craftcms","login","two-factor","two-step","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Two-Factor Authentication Craft 4 plugin for two-factor or two-step login using Time Based OTP (TOTP, like Google Authenticator). Every user can setup TOTP themselves, the plugin does not force users. Admins can list usage in user tables. Inner working Login works as usual for users without 2-factor auth. When enabled, the user is redirected to the 2-factor verification page after login. This means the user is already logged in. When the user tries to visit an other Control Panel page than the public ones before verification, the logout is triggered. This blocks the user from visiting the CP unverified. Requirements - Craft 4.0.0 and up - PHP 8.1 and up Setting up back end 2FA - Set verifyBackEnd to true in the config file (this is the default). - Set forceBackEnd to true if you want to prevent users from accessing the control panel without first enabling 2FA. Setting up front end 2FA When using a login for front end users, the following steps add 2FA support. - Copy the two-factor-authentication.php file to your config/ folder. - Set verifyFrontEnd to true in the config file. - Define what urls should be protected with 2FA verification. Choose between using the frontEndPathAllow or frontEndPathExclude ! Using both will block everything! See config for additional info. - Build a 2FA login-verify form accessible by url like the example twig. - Set the verifyPath . For our login-verify.twig example the path would be login-verify . - Allow users setting up 2FA in front end by bu","default_branch":null,"files":null,"tree":[],"storefront":"/r/roelvanhintum","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roelvanhintum/craft-twofactorauthentication/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}