From 8437f2fb7be1b73e206acfd7fd3f27f111f6600f Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 6 Feb 2024 18:39:47 +0100 Subject: [PATCH] System: Access: Users - add issuer and logo to OTP link, for https://github.com/opnsense/core/issues/7126 --- src/www/system_usermanager.php | 2 ++ src/www/system_usermanager_passwordmg.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/www/system_usermanager.php b/src/www/system_usermanager.php index 7884af28bc7..7ed323cab27 100644 --- a/src/www/system_usermanager.php +++ b/src/www/system_usermanager.php @@ -935,6 +935,8 @@ class="btn btn-default btn-xs" data-toggle="tooltip" title=" diff --git a/src/www/system_usermanager_passwordmg.php b/src/www/system_usermanager_passwordmg.php index 966595c5fe3..1099976440d 100644 --- a/src/www/system_usermanager_passwordmg.php +++ b/src/www/system_usermanager_passwordmg.php @@ -77,6 +77,8 @@ $otp_url = "otpauth://totp/"; $otp_url .= $username."@".htmlspecialchars($config['system']['hostname'])."?secret="; $otp_url .= $new_seed; + $otp_url .= "&issuer=OPNsense"; + $otp_url .= "&image=https://docs.opnsense.org/_static/favicon.png"; echo json_encode([ "otp_seed" => $new_seed , "otp_seed_url" => $otp_url,