Hide PGP 2FA section when TOTP is enabled

This commit is contained in:
danwin1210 committed 2026-10-11 19:53:34 +02:00
1 parent 7ad160cead
commit 2e4b364fc1
1 file changed
+1 -1
+1 -1
View File
@@ -441,7 +441,7 @@ if ( empty( $_SESSION[ 'email_user' ] ) ) { ?>
<button type="submit" name="action" value="start_totp_setup"><?php echo htmlspecialchars(_('Set up TOTP')); ?></button>
</form>
<?php }
if ( ! empty( $pgp_status[ 'pgp_key' ] ) ) {
if ( empty( $pgp_status[ 'totp_secret' ] ) && ! empty( $pgp_status[ 'pgp_key' ] ) ) {
if ( (int) $pgp_status[ 'tfa' ] === 1 ) {
?>
<form class="form_limit" action="manage_account.php" method="post">