Skip to content

Commit 2d76a78

Browse files
committed
make SkipLocal2FA omitempty
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 4be7dcb commit 2d76a78

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

services/auth/source/ldap/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Source struct {
5252
GroupFilter string // Group Name Filter
5353
GroupMemberUID string // Group Attribute containing array of UserUID
5454
UserUID string // User Attribute listed in Group
55-
SkipLocalTwoFA bool // Skip Local 2fa for users authenticated with this source
55+
SkipLocalTwoFA bool `json:",omitempty"` // Skip Local 2fa for users authenticated with this source
5656

5757
// reference to the loginSource
5858
loginSource *models.LoginSource

services/auth/source/oauth2/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Source struct {
2424
OpenIDConnectAutoDiscoveryURL string
2525
CustomURLMapping *CustomURLMapping
2626
IconURL string
27-
SkipLocalTwoFA bool
27+
SkipLocalTwoFA bool `json:",omitempty"`
2828

2929
// reference to the loginSource
3030
loginSource *models.LoginSource

services/auth/source/pam/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
type Source struct {
2121
ServiceName string // pam service (e.g. system-auth)
2222
EmailDomain string
23-
SkipLocalTwoFA bool // Skip Local 2fa for users authenticated with this source
23+
SkipLocalTwoFA bool `json:",omitempty"` // Skip Local 2fa for users authenticated with this source
2424

2525
// reference to the loginSource
2626
loginSource *models.LoginSource

services/auth/source/smtp/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Source struct {
2626
SkipVerify bool
2727
HeloHostname string
2828
DisableHelo bool
29-
SkipLocalTwoFA bool
29+
SkipLocalTwoFA bool `json:",omitempty"`
3030

3131
// reference to the loginSource
3232
loginSource *models.LoginSource

0 commit comments

Comments
 (0)