Closed d1str0 closed 4 years ago
Fixes #58
Need a way to log out of the website. Also, no csrf was being used yet.
This adds a logout handler and also gorilla csrf.
Login, logout, try and hit /ui/dashboard while logged out, hit /ui/login while already logged in, etc.
UI could use some help, @domshyra ;)
This PR addresses the following issues:
Fixes #58
Context
Need a way to log out of the website. Also, no csrf was being used yet.
Approach
This adds a logout handler and also gorilla csrf.
Testing
Login, logout, try and hit /ui/dashboard while logged out, hit /ui/login while already logged in, etc.
Misc.
UI could use some help, @domshyra ;)