Skip to content

Commit f3be383

Browse files
committed
bugfix
Signed-off-by: Andrew Thornton <[email protected]>
1 parent b222099 commit f3be383

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
@@ -1592,7 +1592,7 @@ func addLdapSSHPublicKeys(usr *User, s *LoginSource, sshPublicKeys []string) boo
15921592
found := false
15931593
keys := []byte(sshKey)
15941594
loop:
1595-
for len(sshKey) > 0 && err == nil {
1595+
for len(keys) > 0 && err == nil {
15961596
var out ssh.PublicKey
15971597
var comment string
15981598
// We ignore options as they are not relevant to Gitea

0 commit comments

Comments
 (0)