1
0
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:
Alex Babel
2024-03-18 11:58:21 +01:00
committed by GitHub
parent e4cf2cdaf5
commit 5d85d0fb65
2 changed files with 2 additions and 2 deletions

View File

@@ -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"}] {

View File

@@ -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 {