Skip to content

Commit 0ffc1c1

Browse files
authored
Disable bool validation (#528)
1 parent d3e49b2 commit 0ffc1c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. For commit
1515
- some light value validation on certain fields
1616
- removed recaptcha -- was disabled and not used before.
1717
- moved `recaptcha` and `signup` configs to `auth.methods.password`
18+
- also pushes to ghcr `ghcr.io/gtsteffaniak/filebrowser` https://github.com/gtsteffaniak/filebrowser/issues/470
1819

1920
**BugFixes**:
2021
- fix scope reset on restart https://github.com/gtsteffaniak/filebrowser/issues/515

backend/settings/structs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type LoginMethods struct {
3737
}
3838

3939
type PasswordAuthConfig struct {
40-
Enabled bool `json:"enabled" validate:"required"`
40+
Enabled bool `json:"enabled"`
4141
MinLength int `json:"minLength" validate:"omitempty,min=5"`
4242
Signup bool `json:"signup" validate:"omitempty"`
4343
Recaptcha Recaptcha `json:"recaptcha" validate:"omitempty"`
@@ -50,7 +50,7 @@ type Recaptcha struct {
5050
}
5151

5252
type ProxyAuthConfig struct {
53-
Enabled bool `json:"enabled" validate:"required"`
53+
Enabled bool `json:"enabled"`
5454
CreateUser bool `json:"createUser"`
5555
Header string `json:"header"`
5656
}

0 commit comments

Comments
 (0)