From e36de1bb59a58b2501b70f2ebdb25f23195bda2e Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Fri, 22 Dec 2017 18:36:22 +0000 Subject: [PATCH] Add validation when changing email (#706) --- CHANGELOG | 1 + app/Http/Requests/SettingsRequest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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' => '',