mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-10 13:43:38 +08:00
Allow book, shelf, settings & profile form input validation to skip image
This commit is contained in:
@ -155,7 +155,7 @@ class UserController extends Controller
|
||||
'password' => 'min:6|required_with:password_confirm',
|
||||
'password-confirm' => 'same:password|required_with:password',
|
||||
'setting' => 'array',
|
||||
'profile_image' => $this->getImageValidationRules(),
|
||||
'profile_image' => 'nullable|' . $this->getImageValidationRules(),
|
||||
]);
|
||||
|
||||
$user = $this->userRepo->getById($id);
|
||||
|
Reference in New Issue
Block a user