소스 검색

Merge pull request #804 from slingamn/issue775_again

raise passphrase length limit to 300 bytes
tags/v2.0.0-rc1
Shivaram Lingamneni 4 년 전
부모
커밋
cb356ecaf0
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      irc/accounts.go

+ 1
- 1
irc/accounts.go 파일 보기

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

Loading…
취소
저장