Skip to content

Commit

Permalink
validate login_remote_user_enabled & login_common_disabled as booleans
Browse files Browse the repository at this point in the history
suggested in snipe#7600 (comment)

improves interoperability with postgresql where the database fields are of type boolean
see snipe#7600 & snipe#13615
  • Loading branch information
landryb committed May 30, 2024
1 parent 386416e commit 02f6d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class Setting extends Model
'labels_fontsize' => 'numeric|min:5',
'labels_pagewidth' => 'numeric|nullable',
'labels_pageheight' => 'numeric|nullable',
'login_remote_user_enabled' => 'numeric|nullable',
'login_common_disabled' => 'numeric|nullable',
'login_remote_user_enabled' => 'boolean|nullable',
'login_common_disabled' => 'boolean|nullable',
'login_remote_user_custom_logout_url' => 'string|nullable',
'login_remote_user_header_name' => 'string|nullable',
'thumbnail_max_h' => 'numeric|max:500|min:25',
Expand Down

0 comments on commit 02f6d4a

Please sign in to comment.