aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-01-19 11:51:52 +0300
committerFrederick Muriuki Muriithi2023-01-19 11:51:52 +0300
commit88070363558aa8c8f55021d8db1c410007d8854b (patch)
treee00a4165d7435bb7532c44cc4a37908f73f3c7bf /gn3/api
parentbf7a51087acfb3cf6706e18c028cc7ada5cebac9 (diff)
downloadgenenetwork3-88070363558aa8c8f55021d8db1c410007d8854b.tar.gz
auth: Fix user registration
The code checking for errors was buggy and would let empty values through. The sqlite3.IntegrityError exception was not being handled correctly, and would cause a failure in the application. This commit fixes the issues noted above. * gn3/auth/authorisation/roles.py: fix bug in generating query params * gn3/auth/authorisation/views.py: fix error checking code. Raise exception if email is already registered.
Diffstat (limited to 'gn3/api')
0 files changed, 0 insertions, 0 deletions