mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-18 01:20:31 +00:00
rector: arrrrr
This commit is contained in:
@@ -16,8 +16,8 @@ class OauthSetting extends Model
|
||||
protected function clientSecret(): Attribute
|
||||
{
|
||||
return Attribute::make(
|
||||
get: fn (?string $value) => empty($value) ? null : Crypt::decryptString($value),
|
||||
set: fn (?string $value) => empty($value) ? null : Crypt::encryptString($value),
|
||||
get: fn (?string $value) => $value === null || $value === '' || $value === '0' ? null : Crypt::decryptString($value),
|
||||
set: fn (?string $value) => $value === null || $value === '' || $value === '0' ? null : Crypt::encryptString($value),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user