3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00
This commit is contained in:
Shivaram Lingamneni 2020-02-21 04:26:17 -05:00
parent 0d5a4fd584
commit 91bb7f5877

View File

@ -405,7 +405,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) > 600 {
if len(passphrase) == 0 || len(passphrase) > 256 {
return errAccountBadPassphrase
}
// we use * as a placeholder in some places, if it's gotten this far then fail