mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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…
Add table
Reference in a new issue