fix: always prepending .
This commit is contained in:
parent
28678e407a
commit
12b2cd5ec5
1 changed files with 5 additions and 2 deletions
|
@ -67,8 +67,11 @@ class AliasController extends Controller
|
|||
return response('You have reached your hourly limit for creating new aliases', 429);
|
||||
}
|
||||
|
||||
$formatEmail = function(string $localPart, string $domain, string $prefix = '') {
|
||||
return $prefix . '.' . $localPart . '@' . $domain;
|
||||
$formatEmail = function(string $localPart, string $domain, string $prefix) {
|
||||
if (isset($prefix) {
|
||||
$localPart = $prefix . '.' . $localPart;
|
||||
}
|
||||
return $localPart . '@' . $domain;
|
||||
};
|
||||
|
||||
if (isset($request->validated()['local_part'])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue