Add ability to enforce lowercase usernames on registration

This commit is contained in:
Maxime Dor
2017-09-26 14:49:32 +02:00
parent 4b9d9be7be
commit fbcf21b5b3
2 changed files with 25 additions and 2 deletions

View File

@@ -26,10 +26,17 @@ password_providers:
- module: "rest_auth_provider.RestAuthProvider"
config:
endpoint: "http://change.me.example.com:12345"
policy:
registration:
username:
enforceLowercase: false
```
Replace the `endpoint` value with the appropriate value.
If you would like to avoid user creating account with upper case letter in their usernames,
use the `enforceLowercase` config item.
## Use
1. Install, configure, restart synapse
2. Try to login with a valid username and password for the endpoint configured