Refactor UI auth implementation
Instead of returning False when auth is incomplete, throw an exception which can be caught with a wrapper.
Showing
- synapse/api/errors.py 16 additions, 0 deletionssynapse/api/errors.py
- synapse/handlers/auth.py 29 additions, 17 deletionssynapse/handlers/auth.py
- synapse/rest/client/v2_alpha/_base.py 38 additions, 3 deletionssynapse/rest/client/v2_alpha/_base.py
- synapse/rest/client/v2_alpha/account.py 5 additions, 9 deletionssynapse/rest/client/v2_alpha/account.py
- synapse/rest/client/v2_alpha/devices.py 5 additions, 9 deletionssynapse/rest/client/v2_alpha/devices.py
- synapse/rest/client/v2_alpha/register.py 3 additions, 6 deletionssynapse/rest/client/v2_alpha/register.py
- tests/rest/client/v2_alpha/test_register.py 7 additions, 4 deletionstests/rest/client/v2_alpha/test_register.py
Loading
Please register or sign in to comment