Commit Graph

13 Commits (f966cbd62f2fc6c436c1b98f45fd8dca8ab03ea4)

Author SHA1 Message Date
Jan Dittberner f966cbd62f Implement user creation and voter management 2 years ago
Jan Dittberner 39bd724381 Switch routing to chi
Routing with httprouter and alice became a bit too complex. This commit
replaces the routing and middleware composition with chi.
2 years ago
Jan Dittberner 7f0b52c5b5 Fix linter warnings 2 years ago
Jan Dittberner 368bd8eefb Remove old code
- remove the old code and its dependencies
- perform some refactoring and fix notifications
- add TODO tags for observed shortcomings
- rename voters.go to users.go
- implement health check for SMTP connection
2 years ago
Jan Dittberner 0c02daf29a Implement direct voting 2 years ago
Jan Dittberner c3d0733e27 Replace gorilla/csrf with justinas/nosurf
- replace dependency for less indirect dependencies
- remove unused configuration options
2 years ago
Jan Dittberner 257a777e03 Add Cache-Control for authenticated pages 2 years ago
Jan Dittberner 1695ce0168 Implement small improvements
- fix golangci-lint warnings
- start setup for user management
- nicer formatting of user login information
2 years ago
Jan Dittberner a1a66b7245 Finish new motion create implementation
- rename config block mail_server to mail_config
- rename smtp server settings
- move mail notification settings to mail_config
- improve navigation templates
- prepare routes for user management
2 years ago
Jan Dittberner 47af34f1cd Use httprouter.NotFound and httprouter.PanicHandler 2 years ago
Jan Dittberner 2ddc013c84 Add panic recovery middleware 2 years ago
Jan Dittberner c0a73494c3 Add request logging 2 years ago
Jan Dittberner 4ce321dc36 Implement security headers and HTTPS 2 years ago