Same maximum username length as mastodon

This commit is contained in:
bashrc committed 2021-07-29 15:22:55 +01:00
1 parent 07072d8e7c
commit d26d2ec8df
2 files changed
+2 -2

No files matched your search

+1 -1
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:
+1 -1
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' + \