Fixed TOTP for client logins

This commit is contained in:
johnnyq
2021-12-04 21:00:34 -05:00
parent e36739297d
commit 53380718b1
4 changed files with 98 additions and 3 deletions

View File

@@ -87,12 +87,13 @@ $sql_recent_logs = mysqli_query($mysqli,"SELECT * FROM logs
if(!empty($session_token)){
//Generate QR Code based off the generated key
print sprintf('<img src="%s"/>',TokenAuth6238::getBarCodeUrl('','',$session_token,$config_company_name));
echo "<p class='text-secondary'>$secretkey</p>";
}
?>
<input type="hidden" name="token" value="<?php echo $secretkey; ?>">
<hr>
<?php if(empty($session_token)){ ?>