Save workspace changes
This commit is contained in:
@@ -35,6 +35,12 @@ class RequestEmailChangeRequest extends FormRequest
|
||||
'max:255',
|
||||
Rule::unique(User::class, 'email')->ignore((int) $this->user()->id),
|
||||
function (string $attribute, mixed $value, \Closure $fail): void {
|
||||
if (User::isEmailLoginUpgradePlaceholder((string) $value)) {
|
||||
$fail('Please enter a real email address you can access.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (strtolower((string) $value) === strtolower((string) $this->user()->email)) {
|
||||
$fail('Please enter a different email address.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user