refactor(auth): simplify password reset attempt handling logic and improve code readability
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user