mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-01 18:53: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)
|
public function emailUpdate(Request $request)
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'email' => 'required|email',
|
'email' => 'required|email|unique:users,email',
|
||||||
]);
|
]);
|
||||||
$changes = false;
|
$changes = false;
|
||||||
$email = $request->input('email');
|
$email = $request->input('email');
|
||||||
|
|
Loading…
Reference in a new issue