feat(scanner): implement password reset attempt functionality for scanner users
This commit is contained in:
@@ -56,9 +56,11 @@ class NotificationMailService
|
||||
return;
|
||||
}
|
||||
|
||||
$recoveryDomain = $channel === PasswordResetRequested::CHANNEL_ADMINAPP
|
||||
? $tenant->websiteType?->dominio
|
||||
: $tenant->dominio;
|
||||
$recoveryDomain = match ($channel) {
|
||||
PasswordResetRequested::CHANNEL_ADMINAPP => $tenant->websiteType?->dominio,
|
||||
PasswordResetRequested::CHANNEL_SCANNER => $tenant->websiteType?->scanner_domain,
|
||||
default => $tenant->dominio,
|
||||
};
|
||||
$recoveryUrl = $recoveryDomain === null
|
||||
? null
|
||||
: 'https://'.$recoveryDomain.'/recuperar-contrasena/codigo?email='.urlencode($attempt->user->email);
|
||||
|
||||
Reference in New Issue
Block a user