Skip to content

Commit 55935c8

Browse files
authored
Update models/user.go
1 parent d868283 commit 55935c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ func addLdapSSHPublicKeys(usr *User, s *LoginSource, sshPublicKeys []string) boo
16051605
sshKeyName := fmt.Sprintf("%s-%s", s.Name, marshalled[0:40])
16061606

16071607
marshalled = append(marshalled, []byte(" "+comment)...)
1608-
if _, err := AddPublicKey(usr.ID, sshKeyName, sshKey, s.ID); err != nil {
1608+
if _, err := AddPublicKey(usr.ID, sshKeyName, string(marshalled), s.ID); err != nil {
16091609
if IsErrKeyAlreadyExist(err) {
16101610
log.Trace("addLdapSSHPublicKeys[%s]: LDAP Public SSH Key %s already exists for user", s.Name, usr.Name)
16111611
} else {

0 commit comments

Comments
 (0)