forked from External/ergo
fix #410
This commit is contained in:
parent
ed85dd519f
commit
1a1d3ff89f
4 changed files with 51 additions and 42 deletions
|
|
@ -397,6 +397,10 @@ func validatePassphrase(passphrase string) error {
|
|||
if len(passphrase) == 0 || len(passphrase) > 600 {
|
||||
return errAccountBadPassphrase
|
||||
}
|
||||
// we use * as a placeholder in some places, if it's gotten this far then fail
|
||||
if passphrase == "*" {
|
||||
return errAccountBadPassphrase
|
||||
}
|
||||
// for now, just enforce that spaces are not allowed
|
||||
for _, r := range passphrase {
|
||||
if unicode.IsSpace(r) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue