1
0
Fork 0

Update HomeSettings controller, bail earlier when attempting to update email that already exists

This commit is contained in:
Daniel Supernault 2022-11-17 21:02:54 -07:00
parent d660e46b22
commit 399bf5f810
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ trait HomeSettings
public function emailUpdate(Request $request)
{
$this->validate($request, [
'email' => 'required|email',
'email' => 'required|email|unique:users,email',
]);
$changes = false;
$email = $request->input('email');