Skip to content

Commit

Permalink
log call to createuser even if rejected by username/password length b…
Browse files Browse the repository at this point in the history
…eing to long
  • Loading branch information
swdee committed Mar 16, 2020
1 parent 946fb66 commit 2d0f56b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/keystore/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ func (ks *Keystore) CreateUser(_ *http.Request, args *CreateUserArgs, reply *Cre
ks.lock.Lock()
defer ks.lock.Unlock()

ks.log.Verbo("CreateUser called with %s", args.Username[:maxUserPassLen])

if len(args.Username) > maxUserPassLen || len(args.Password) > maxUserPassLen {
return errUserPassMaxLength
}

ks.log.Verbo("CreateUser called with %s", args.Username)

if args.Username == "" {
return errEmptyUsername
}
Expand Down

0 comments on commit 2d0f56b

Please sign in to comment.