Fix TOTP display

This commit is contained in:
johnnyq 2021-08-18 22:40:20 -04:00
parent f726550356
commit 34e10889dd
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
$login_password = $row['login_password'];
$login_otp_secret = $row['login_otp_secret'];
if(!empty($login_otp_secret)){
$otp_display = get_otp($login_otp_secret);
$otp = get_otp($login_otp_secret);
$otp_display = "<i class='far fa-clock text-secondary'></i> $otp<button class='btn btn-sm' data-clipboard-text='$otp'><i class='far fa-copy text-secondary'></i></button>";
}else{
$otp_display = "-";