From 2adb4cbf9c411a2cb2e5dd1813e93e96e25f2d68 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 11 Oct 2026 21:30:25 +0200 Subject: [PATCH] Handle expired keys --- www/manage_account.php | 73 +++++++++++++++++++++++++----------------- 1 file changed, 43 insertions(+), 30 deletions(-) diff --git a/www/manage_account.php b/www/manage_account.php index 5c78b64..f059565 100644 --- a/www/manage_account.php +++ b/www/manage_account.php @@ -266,38 +266,51 @@ if ( isset( $_SESSION[ 'user_totp_pending' ] ) ) { '.htmlspecialchars(_('Your PGP key has expired, so PGP two-factor authentication was skipped for this login. Update your PGP key to restore PGP two-factor authentication.')).''; + } else { + echo $msg; + echo '

'.htmlspecialchars(_('To login, please decrypt the following PGP encrypted message and confirm the code:')).'

'; + echo '
'.htmlspecialchars( $encrypted ).'
'; + ?> + +
+ +
+
+
+ +
+
+
+ + + + '.htmlspecialchars(_('To login, please decrypt the following PGP encrypted message and confirm the code:')).'

'; -echo "
$encrypted
"; -?> -
- -
-
-
- -
-
-
- - -