feat(auth): enhance password reset attempt handling with new reasons and update related services
This commit is contained in:
@@ -12,7 +12,11 @@ use Throwable;
|
||||
|
||||
class ResetPasswordAttemptService
|
||||
{
|
||||
public function createForEmail(string $email, string $tenantCode, string $reason = 'manual'): void
|
||||
public function createForEmail(
|
||||
string $email,
|
||||
string $tenantCode,
|
||||
string $reason = ResetPasswordAttempt::REASON_MANUAL,
|
||||
): void
|
||||
{
|
||||
$emailFingerprint = $this->emailFingerprint($email);
|
||||
|
||||
@@ -47,7 +51,10 @@ class ResetPasswordAttemptService
|
||||
);
|
||||
}
|
||||
|
||||
public function createForAdminAppEmail(string $email, string $reason = 'manual'): void
|
||||
public function createForAdminAppEmail(
|
||||
string $email,
|
||||
string $reason = ResetPasswordAttempt::REASON_MANUAL,
|
||||
): void
|
||||
{
|
||||
$emailFingerprint = $this->emailFingerprint($email);
|
||||
|
||||
@@ -93,7 +100,10 @@ class ResetPasswordAttemptService
|
||||
);
|
||||
}
|
||||
|
||||
public function createForScannerEmail(string $email, string $reason = 'manual'): void
|
||||
public function createForScannerEmail(
|
||||
string $email,
|
||||
string $reason = ResetPasswordAttempt::REASON_MANUAL,
|
||||
): void
|
||||
{
|
||||
$emailFingerprint = $this->emailFingerprint($email);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user