mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-02 18:38:48 +03:00
Convert some abstract enumeration classes to PHP 8.1+ (Backed)Enum
This commit is contained in:
parent
a5592108a5
commit
5d43aeef0b
15 changed files with 66 additions and 76 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace OCA\SnappyMail\Util;
|
||||
|
||||
use RainLoop\Enumerations\SignMeType;
|
||||
|
||||
class SnappyMailResponse extends \OCP\AppFramework\Http\Response
|
||||
{
|
||||
public function render(): string
|
||||
|
|
@ -184,7 +186,7 @@ class SnappyMailHelper
|
|||
try {
|
||||
$oAccount = $oActions->LoginProcess($aCredentials[1], $aCredentials[2]);
|
||||
if (!$isOIDC && $oAccount
|
||||
&& $oConfig->Get('login', 'sign_me_auto', \RainLoop\Enumerations\SignMeType::DefaultOff) === \RainLoop\Enumerations\SignMeType::DefaultOn
|
||||
&& $oConfig->Get('login', 'sign_me_auto', SignMeType::DefaultOff->value) === SignMeType::DefaultOn->value
|
||||
) {
|
||||
$oActions->SetSignMeToken($oAccount);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue