mirror of https://gitlab.com/bashrc2/epicyon
Same maximum username length as mastodon
parent
07072d8e7c
commit
d26d2ec8df
2
utils.py
2
utils.py
|
@ -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:
|
||||
|
|
|
@ -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' + \
|
||||
|
|
Loading…
Reference in New Issue