This commit is contained in:
the-djmaze 2026-10-24 14:52:36 +02:00
parent bca01170a4
commit 343ef172d1
3 changed files with 3 additions and 3 deletions

View file

@ -131,7 +131,7 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin
private static function getQRCode(MainAccount $oAccount, string $secret) : string private static function getQRCode(MainAccount $oAccount, string $secret) : string
{ {
$email = \rawurlencode($oAccount->Email()); $email = \rawurlencode($oAccount->Email());
// $issuer = \rawurlencode(\RainLoop\API::Config()->Get('webmail', 'title', 'SnappyMail')); // $issuer = \rawurlencode(\RainLoop\Api::Config()->Get('webmail', 'title', 'SnappyMail'));
$QR = \SnappyMail\QRCode::getMinimumQRCode( $QR = \SnappyMail\QRCode::getMinimumQRCode(
// "otpauth://totp/{$issuer}:{$email}?secret={$secret}&issuer={$issuer}", // "otpauth://totp/{$issuer}:{$email}?secret={$secret}&issuer={$issuer}",
"otpauth://totp/{$email}?secret={$secret}", "otpauth://totp/{$email}?secret={$secret}",

View file

@ -33,7 +33,7 @@ class Settings extends \MailSo\Net\ConnectSettings
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$oConfig = \RainLoop\API::Config(); $oConfig = \RainLoop\Api::Config();
$this->viewErrors = !!$oConfig->Get('labs', 'smtp_show_server_errors', false); $this->viewErrors = !!$oConfig->Get('labs', 'smtp_show_server_errors', false);
} }

View file

@ -542,7 +542,7 @@ class ServiceActions
} }
/** /**
* Login with the \RainLoop\API::CreateUserSsoHash() generated hash * Login with the \RainLoop\Api::CreateUserSsoHash() generated hash
*/ */
public function ServiceSso() : string public function ServiceSso() : string
{ {