mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Authentication - TOTP: Updatse for PHP 8.1
This commit is contained in:
@@ -177,7 +177,7 @@ class plugin_totp {
|
|||||||
$view->assign("button_cancel", $text['button-cancel']);
|
$view->assign("button_cancel", $text['button-cancel']);
|
||||||
|
|
||||||
//show the views
|
//show the views
|
||||||
if ($_SESSION['authentication']['plugin']['database']['authorized'] && empty($this->user_totp_secret)) {
|
if (!empty($_SESSION['authentication']['plugin']['database']['authorized']) && empty($this->user_totp_secret)) {
|
||||||
|
|
||||||
//create the totp secret
|
//create the totp secret
|
||||||
$base32 = new base2n(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', FALSE, TRUE, TRUE);
|
$base32 = new base2n(5, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567', FALSE, TRUE, TRUE);
|
||||||
|
|||||||
Reference in New Issue
Block a user