diff --git a/home/login/login.go b/home/login/login.go index d0ebba3..e103ba5 100644 --- a/home/login/login.go +++ b/home/login/login.go @@ -27,14 +27,10 @@ func SetAccount(acc *models.Account, username, password string, tier rpcnet.Tier return err } - if err := UsernameValidate(password); err != nil { + if err := UsernameValidate(username); err != nil { return err } - if password == "" { - return ErrPasswordCannotBeEmpty - } - acc.Username = username acc.Tier = tier acc.IdentityHash = srp.HashCredentials(