A TOTP (Time-Based One-Time Password) Two-Factor Authentication Module for codeigniter4/shield
Project should have a stability level of dev
composer config minimum-stability dev
composer config prefer-stable true
composer require grimpirate/halberd:dev-develop
php spark halberd:ini
The initialization will silently fail to copy any of the files listed in the Configuration - Manual method section if they are already present in the app/Config/ directory
- Copy the configuration file from vendor/grimpirate/halberd/app/Config/TOTP.php to your project's app/Config/ directory
- Copy/merge the registrar file from vendor/grimpirate/halberd/app/Config/Registrar.php to your project's app/Config/ directory
- Copy the stylesheet from vendor/grimpirate/halberd/public/css/totp.css to your project's app/public/css/ directory
The dependency pragmarx/google2fa requires that your server time be accurately synchronized (via NTP or some other means). CodeIgniter's appTimezone will not affect OTP generation.