mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update HomeSettings controller, bail earlier when attempting to update email that already exists
This commit is contained in:
parent
d660e46b22
commit
399bf5f810
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue