participedia / frontend

DEPRECATED - see https://github.com/participedia/api/ instead
MIT License
2 stars 2 forks source link

Login fixes #880

Closed dethe closed 6 years ago

dethe commented 6 years ago

Moved admin privileges to our database (instead of Auth0's). I think we are now using the new values everywhere and on all the paths (logged in already, or logged in on the relevant page, etc.) but the code was convoluted enough that I wouldn't be surprised if I missed something or if there was a subtle timing conflict.

Fixes #800

While I was in there I added redirects on the rest of the login paths.

Fixes #434 (which was closed, but was only working on one of the possible login paths).