Skip to content

Commit 6920076

Browse files
author
Ivan Tkachev
committed
Fix formatting
1 parent 1228de7 commit 6920076

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

cmd/admin_auth_ldap.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ func commonLdapCLIFlags() []cli.Flag {
9494
Name: "public-ssh-key-attribute",
9595
Usage: "The attribute of the user’s LDAP record containing the user’s public ssh key.",
9696
},
97-
&cli.BoolFlag{
98-
Name: "ssh-keys-are-verified",
99-
Usage: "Set to true to automatically flag SSH keys in LDAP as verified.",
100-
},
97+
&cli.BoolFlag{
98+
Name: "ssh-keys-are-verified",
99+
Usage: "Set to true to automatically flag SSH keys in LDAP as verified.",
100+
},
101101
&cli.BoolFlag{
102102
Name: "skip-local-2fa",
103103
Usage: "Set to true to skip local 2fa for users authenticated by this source",

models/asymkey/ssh_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func AddPublicKey(ctx context.Context, ownerID int64, name, content string, auth
115115
Mode: perm.AccessModeWrite,
116116
Type: KeyTypeUser,
117117
LoginSourceID: authSourceID,
118-
Verified: verified,
118+
Verified: verified,
119119
}
120120
if err = addKey(ctx, key); err != nil {
121121
return nil, fmt.Errorf("addKey: %w", err)

routers/web/admin/auths.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func parseLDAPConfig(form forms.AuthenticationForm) *ldap.Source {
136136
AttributesInBind: form.AttributesInBind,
137137
AttributeSSHPublicKey: form.AttributeSSHPublicKey,
138138
AttributeAvatar: form.AttributeAvatar,
139-
SSHKeysAreVerified: form.SSHKeysAreVerified,
139+
SSHKeysAreVerified: form.SSHKeysAreVerified,
140140
SearchPageSize: pageSize,
141141
Filter: form.Filter,
142142
GroupsEnabled: form.GroupsEnabled,

services/auth/source/ldap/source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type Source struct {
4444
AttributesInBind bool // fetch attributes in bind context (not user)
4545
AttributeSSHPublicKey string // LDAP SSH Public Key attribute
4646
AttributeAvatar string
47-
SSHKeysAreVerified bool // true if SSH keys in LDAP are verified
47+
SSHKeysAreVerified bool // true if SSH keys in LDAP are verified
4848
SearchPageSize uint32 // Search with paging page size
4949
Filter string // Query filter to validate entry
5050
AdminFilter string // Query filter to check if user is admin

services/forms/auth_form.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type AuthenticationForm struct {
3434
AttributeMail string
3535
AttributeSSHPublicKey string
3636
AttributeAvatar string
37-
SSHKeysAreVerified bool
37+
SSHKeysAreVerified bool
3838
AttributesInBind bool
3939
UsePagedSearch bool
4040
SearchPageSize int

0 commit comments

Comments
 (0)