Skip to content

Commit

Permalink
fix: encryption bug in User.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Feb 1, 2024
1 parent aa7564e commit fc35b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ protected function google2faSecret(string $value = null): Attribute
{
return new Attribute(
get: fn($value) => ! is_null($value) ? decrypt($value) : '',
set: fn($value) => ! is_null($value) ? encrypt($value) : '',
set: fn($value) => ! is_null($value) ? encrypt($value) : null,
);
}

Expand Down

0 comments on commit fc35b65

Please sign in to comment.