diff --git a/CHANGELOG b/CHANGELOG index a67900bc2c8..ee84b509e97 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ UNRELEASED CHANGES: +* Add validation when changing email address * Add ability to change account's password in the settings RELEASED VERSIONS: diff --git a/app/Http/Requests/SettingsRequest.php b/app/Http/Requests/SettingsRequest.php index 7d1020fc537..ede17f3a200 100644 --- a/app/Http/Requests/SettingsRequest.php +++ b/app/Http/Requests/SettingsRequest.php @@ -26,7 +26,7 @@ public function rules() return [ 'first_name' => 'required|max:255', 'last_name' => 'required|max:255', - 'email' => 'required|email|max:2083', + 'email' => 'required|email|max:2083|unique:users,email', 'timezone' => '', 'layout' => '', 'locale' => '',