refactor: auto refactor via rector
This commit is contained in:
@@ -39,7 +39,7 @@ class RecoveryCodes extends Component
|
||||
|
||||
if ($user->hasEnabledTwoFactorAuthentication() && $user->two_factor_recovery_codes) {
|
||||
try {
|
||||
$this->recoveryCodes = json_decode(decrypt($user->two_factor_recovery_codes), true);
|
||||
$this->recoveryCodes = json_decode((string) decrypt($user->two_factor_recovery_codes), true);
|
||||
} catch (Exception) {
|
||||
$this->addError('recoveryCodes', 'Failed to load recovery codes');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user