Update update_credentials endpoint, enforce validator limits

pull/3600/head
Daniel Supernault 3 years ago
parent 49d43e06e2
commit b700790bb4
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -217,10 +217,10 @@ class ApiV1Controller extends Controller
$this->validate($request, [ $this->validate($request, [
'avatar' => 'sometimes|mimetypes:image/jpeg,image/png|min:10|max:' . config('pixelfed.max_avatar_size'), 'avatar' => 'sometimes|mimetypes:image/jpeg,image/png|min:10|max:' . config('pixelfed.max_avatar_size'),
'display_name' => 'nullable|string', 'display_name' => 'nullable|string|max:30',
'note' => 'nullable|string', 'note' => 'nullable|string|max:200',
'locked' => 'nullable', 'locked' => 'nullable',
'website' => 'nullable', 'website' => 'nullable|string|max:120',
// 'source.privacy' => 'nullable|in:unlisted,public,private', // 'source.privacy' => 'nullable|in:unlisted,public,private',
// 'source.sensitive' => 'nullable|boolean' // 'source.sensitive' => 'nullable|boolean'
], [ ], [

Loading…
Cancel
Save