mirror of https://github.com/poanetwork/gecko.git
log call to createuser even if rejected by username/password length being to long
This commit is contained in:
parent
946fb662a2
commit
2d0f56bbaf
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue