From 5d73d17c74774c80cee3f6b94bb6977105060435 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 8 Feb 2016 20:35:23 +0000 Subject: [PATCH] Fixed bug preventing LDAP users updating thier profile Made email not required when a profile is updated. LDAP users without admin privileges could did not have an email field to submit therefore could previously not update thier profile. --- app/Http/Controllers/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 325d3118f..bf25eafb2 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -130,8 +130,8 @@ class UserController extends Controller }); $this->validate($request, [ - 'name' => 'required', - 'email' => 'required|email|unique:users,email,' . $id, + 'name' => 'min:2', + 'email' => 'min:2|email|unique:users,email,' . $id, 'password' => 'min:5|required_with:password_confirm', 'password-confirm' => 'same:password|required_with:password', 'role' => 'exists:roles,id'