Fix v2_alpha registration. Add unit tests.
V2 Registration forced everyone (including ASes) to create a password for a user, when ASes should be able to omit passwords. Also unbreak AS registration in general which checked too early if the given username was claimed by an AS; it was checked before knowing if the AS was the one doing the registration! Add unit tests for AS reg, user reg and disabled_registration flag.
Showing
- synapse/handlers/register.py 2 additions, 1 deletionsynapse/handlers/register.py
- synapse/rest/client/v2_alpha/register.py 70 additions, 54 deletionssynapse/rest/client/v2_alpha/register.py
- tests/rest/client/v2_alpha/test_register.py 132 additions, 0 deletionstests/rest/client/v2_alpha/test_register.py
Loading
Please register or sign in to comment