mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 18:15:24 +00:00
Merge remote-tracking branch 'origin/next' into volume-backups-server-s3
This commit is contained in:
commit
ddbed9f8a6
38 files changed
+1634
-134
No files matched your search
@@ -8,9 +8,12 @@ function normalize_email_identity(?string $email): ?string
|
||||
return null;
|
||||
}
|
||||
|
||||
[$localPart, $domain] = explode('@', Str::lower($email), 2);
|
||||
$localPart = Str::before($localPart, '+');
|
||||
$localPart = str_replace('.', '', $localPart);
|
||||
[$localPart, $domain] = explode('@', Str::lower(trim($email)), 2);
|
||||
|
||||
if (in_array($domain, ['gmail.com', 'googlemail.com'], true)) {
|
||||
$localPart = Str::before($localPart, '+');
|
||||
$localPart = str_replace('.', '', $localPart);
|
||||
}
|
||||
|
||||
if (blank($localPart) || blank($domain)) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user