0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-17 05:42:06 +00:00

Allow book, shelf, settings & profile form input validation to skip image

This commit is contained in:
TBK 2020-03-04 00:05:47 +01:00
parent d3737d5a87
commit 57f587a78b
No known key found for this signature in database
GPG key ID: 6D4FD19CB66C95EA
4 changed files with 6 additions and 6 deletions
app/Http/Controllers

View file

@ -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);