refactor(auth): simplify password reset attempt handling logic and improve code readability

This commit is contained in:
2026-08-14 08:51:31 -03:00
parent a4a4c9afbc
commit 4de08ff2f2
3 changed files with 20 additions and 25 deletions

View File

@@ -16,8 +16,7 @@ class ResetPasswordAttemptService
string $email,
string $tenantCode,
string $reason = ResetPasswordAttempt::REASON_MANUAL,
): void
{
): void {
$emailFingerprint = $this->emailFingerprint($email);
try {
@@ -54,8 +53,7 @@ class ResetPasswordAttemptService
public function createForAdminAppEmail(
string $email,
string $reason = ResetPasswordAttempt::REASON_MANUAL,
): void
{
): void {
$emailFingerprint = $this->emailFingerprint($email);
try {
@@ -103,8 +101,7 @@ class ResetPasswordAttemptService
public function createForScannerEmail(
string $email,
string $reason = ResetPasswordAttempt::REASON_MANUAL,
): void
{
): void {
$emailFingerprint = $this->emailFingerprint($email);
try {