log call to createuser even if rejected by username/password length being to long

This commit is contained in:
swdee 2020-03-17 08:22:16 +13:00
parent 946fb662a2
commit 2d0f56bbaf
1 changed files with 2 additions and 2 deletions

View File

@ -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
}