Move totp.php out of functions folder into plugins then removed functions folder

This commit is contained in:
johnnyq 2025-01-24 21:07:01 -05:00
parent 772b47f2c0
commit f29d122376
6 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
require_once "config.php";
require_once "functions.php";
require_once "check_login.php";
require_once "functions/totp.php";
require_once "plugins/totp/totp.php";
/*
* Fetches SSL certificates from remote hosts & returns the relevant info (issuer, expiry, public key)

View File

@ -11,7 +11,7 @@ require_once "../config.php";
// Set Timezone
require_once "../inc_set_timezone.php";
require_once "../functions.php";
require_once "../functions/totp.php";
require_once "../plugins/totp/totp.php";
/*

View File

@ -21,7 +21,7 @@ if ($config_https_only && (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] !== 'o
require_once "functions.php";
require_once "functions/totp.php";
require_once "plugins/totp/totp.php";
// IP & User Agent for logging

View File

@ -193,7 +193,7 @@ if (isset($_POST['edit_your_user_preferences'])) {
if (isset($_POST['verify'])) {
require_once "functions/totp.php";
require_once "plugins/totp/totp.php";
$currentcode = intval($_POST['code']); //code to validate, for example received from device

View File

@ -52,7 +52,7 @@ $remember_token_count = mysqli_num_rows($sql_remember_tokens);
<center>
<?php
require_once 'functions/totp.php';
require_once 'plugins/totp/totp.php';
//Generate a base32 Key
$secretkey = key32gen();