Commit Graph

18 Commits (57fd5364fc2441f5f50c69d0b593fc1f1f2b3142)

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 be14a37b4d Implement add email address 2 years ago
Jan Dittberner a5475ec16e Implement user editing 2 years ago
Jan Dittberner 335ce16547 Add tests for handlers and middleware
- drop migration 2022052601_drop_unused_decisions_colums because it was implicitly part of an earlier migration
- add /health endpoint for database health check
- add tests for the health check endpoint
- add tests for middleware secureHeaders, logRequest and tryAuthenticate
- add models.UserModel.CreateUser method
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 1695ce0168 Implement small improvements
- fix golangci-lint warnings
- start setup for user management
- nicer formatting of user login information
2 years ago
Jan Dittberner 47092bfa9b Implement flash messages
- configure session cookie security
- setup flash message handling in newTemplateData
- show flash message in base.html
- add flash message for new motion
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 e1af6876c1 Implement new motion form
- add session handler
- add form decoder from go-playground
- implement custom decoder for VoteType
2 years ago
Jan Dittberner 47af34f1cd Use httprouter.NotFound and httprouter.PanicHandler 2 years ago
Jan Dittberner 0ad88fe5f4 Implement motion detail view
- add httprouter for parameterized routing
- improve styling
- add routes and handlers
- implement motion detail handler
2 years ago
Jan Dittberner 44a6180a09 Use alice to chain middleware 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
Jan Dittberner ec7623a51a Implement timestamp pagination for motion list 2 years ago
Jan Dittberner 01b95f2253 Start notification job refactoring 2 years ago