Browse Source

raise passphrase length limit to 300 bytes

For irctest compatibility.

Fixes #775
tags/v2.0.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
44b79a052c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/accounts.go

+ 1
- 1
irc/accounts.go View File

441
 // validatePassphrase checks whether a passphrase is allowed by our rules
441
 // validatePassphrase checks whether a passphrase is allowed by our rules
442
 func validatePassphrase(passphrase string) error {
442
 func validatePassphrase(passphrase string) error {
443
 	// sanity check the length
443
 	// sanity check the length
444
-	if len(passphrase) == 0 || len(passphrase) > 256 {
444
+	if len(passphrase) == 0 || len(passphrase) > 300 {
445
 		return errAccountBadPassphrase
445
 		return errAccountBadPassphrase
446
 	}
446
 	}
447
 	// we use * as a placeholder in some places, if it's gotten this far then fail
447
 	// we use * as a placeholder in some places, if it's gotten this far then fail

Loading…
Cancel
Save