Same maximum username length as mastodon

main
Bob Mottram 2021-07-29 15:22:55 +01:00
parent 07072d8e7c
commit d26d2ec8df
2 changed files with 2 additions and 2 deletions

View File

@ -1598,7 +1598,7 @@ def getNicknameValidationPattern() -> str:
pattern += '(?!.*\\b' + word + '\\b)'
else:
pattern = '^(?!.*\\b' + word + '\\b)'
return pattern + '.*$'
return pattern + '.*${1,30}'
def _isReservedName(nickname: str) -> bool:

View File

@ -177,7 +177,7 @@ def htmlLogin(cssCache: {}, translate: {},
translate['Password'] + '</b></label>\n' + \
' <input type="password" ' + autocompleteStr + \
' placeholder="' + translate['Enter Password'] + '" ' + \
'pattern="{8,}" name="password" required>\n' + \
'pattern="{8,256}" name="password" required>\n' + \
loginButtonStr + registerButtonStr + '\n' + \
' </div>\n' + \
'</form>\n' + \