You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2026-01-03 17:02:28 +03:00
Increase allowed username length to 64 in the default policy (#2471)
This commit is contained in:
@@ -19,7 +19,7 @@ violation[{"field": "username", "msg": "username too short"}] {
|
||||
}
|
||||
|
||||
violation[{"field": "username", "msg": "username too long"}] {
|
||||
count(input.username) >= 15
|
||||
count(input.username) > 64
|
||||
}
|
||||
|
||||
violation[{"field": "username", "msg": "username contains invalid characters"}] {
|
||||
|
||||
@@ -45,7 +45,7 @@ test_short_username {
|
||||
}
|
||||
|
||||
test_long_username {
|
||||
not allow with input as {"username": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "registration_method": "upstream-oauth2"}
|
||||
not allow with input as {"username": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "registration_method": "upstream-oauth2"}
|
||||
}
|
||||
|
||||
test_invalid_username {
|
||||
|
||||
Reference in New Issue
Block a user