Dan Brown

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.
...@@ -130,8 +130,8 @@ class UserController extends Controller ...@@ -130,8 +130,8 @@ class UserController extends Controller
130 }); 130 });
131 131
132 $this->validate($request, [ 132 $this->validate($request, [
133 - 'name' => 'required', 133 + 'name' => 'min:2',
134 - 'email' => 'required|email|unique:users,email,' . $id, 134 + 'email' => 'min:2|email|unique:users,email,' . $id,
135 'password' => 'min:5|required_with:password_confirm', 135 'password' => 'min:5|required_with:password_confirm',
136 'password-confirm' => 'same:password|required_with:password', 136 'password-confirm' => 'same:password|required_with:password',
137 'role' => 'exists:roles,id' 137 'role' => 'exists:roles,id'
......