mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 21:22:30 +00:00
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.
This commit is contained in:
parent
d32460070f
commit
5d73d17c74
@ -130,8 +130,8 @@ class UserController extends Controller
|
|||||||
});
|
});
|
||||||
|
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'name' => 'required',
|
'name' => 'min:2',
|
||||||
'email' => 'required|email|unique:users,email,' . $id,
|
'email' => 'min:2|email|unique:users,email,' . $id,
|
||||||
'password' => 'min:5|required_with:password_confirm',
|
'password' => 'min:5|required_with:password_confirm',
|
||||||
'password-confirm' => 'same:password|required_with:password',
|
'password-confirm' => 'same:password|required_with:password',
|
||||||
'role' => 'exists:roles,id'
|
'role' => 'exists:roles,id'
|
||||||
|
Loading…
Reference in New Issue
Block a user