mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Bugfix for PHP 8
This commit is contained in:
parent
071dab01a7
commit
0d22cfd955
2 changed files with 7 additions and 2 deletions
|
|
@ -695,7 +695,12 @@ trait Admin
|
|||
|
||||
public function DoAdminPHPExtensions() : array
|
||||
{
|
||||
$aResult = [];
|
||||
$aResult = [
|
||||
[
|
||||
'name' => 'PHP ' . PHP_VERSION,
|
||||
'loaded' => true
|
||||
]
|
||||
];
|
||||
foreach (['APCu', 'cURL','GD','Gmagick','Imagick','intl','LDAP','OpenSSL','pdo_mysql','pdo_pgsql','pdo_sqlite','Sodium','XXTEA','Zip'] as $name) {
|
||||
$aResult[] = [
|
||||
'name' => $name,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ namespace SnappyMail;
|
|||
|
||||
abstract class TOTP
|
||||
{
|
||||
public function Verify(string $sSecret, string $sCode) : bool
|
||||
public static function Verify(string $sSecret, string $sCode) : bool
|
||||
{
|
||||
$key = static::Base32Decode($sSecret);
|
||||
$algo = 'SHA1'; // Google Authenticator doesn't support SHA256
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue