mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 18:29:54 +00:00
Same maximum username length as mastodon
This commit is contained in:
1 parent
07072d8e7c
commit
d26d2ec8df
2 files changed
+2
-2
No files matched your search
@@ -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
@@ -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' + \
|
||||
|
||||
Reference in new issue
Block a user