-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added 2 config vars (`totp_two_step_login_active`, `totp_two_step_login_redirect`) - changed `login()` to set session data if totp is required and two_step_login is active and skip default - fixed `control()` to check if totp verification is required, if required then it redirects to `totp_two_step_login_redirect` - fixed `control()` to check if is_loggedin not with totp verification is required - changed `is_allowed()` to check if totp verification is required, if required then it redirects to `totp_two_step_login_redirect` - added 2 functions `verify_user_totp_code($totp_code, $user_id = FALSE)` & `is_totp_required()` reference to #131 (tutorial follows)
- Loading branch information
Showing
2 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters