mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-24 22:25:09 +03:00
Resolve #2008
This commit is contained in:
parent
bca01170a4
commit
343ef172d1
3 changed files with 3 additions and 3 deletions
|
|
@ -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}",
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue