Add ability to enforce lowercase usernames on registration
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user