forked from External/ergo
raise passphrase length limit to 300 bytes
For irctest compatibility. Fixes #775
This commit is contained in:
parent
fb8b73e29a
commit
44b79a052c
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ func (am *AccountManager) Register(client *Client, account string, callbackNames
|
|||
// validatePassphrase checks whether a passphrase is allowed by our rules
|
||||
func validatePassphrase(passphrase string) error {
|
||||
// sanity check the length
|
||||
if len(passphrase) == 0 || len(passphrase) > 256 {
|
||||
if len(passphrase) == 0 || len(passphrase) > 300 {
|
||||
return errAccountBadPassphrase
|
||||
}
|
||||
// we use * as a placeholder in some places, if it's gotten this far then fail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue