Commit Graph

8 Commits (a5475ec16e1b92ee146b09b2786c59a19e07e0be)

Author SHA1 Message Date
Jan Dittberner 5efc57d2c3 Implement user deletion
- add audit logging for user changes
- refactor model errors into functions
- implement user delete form and submit handlers
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 28ddbd2ce6 Implement motion withdraw 2 years ago
Jan Dittberner 0c02daf29a Implement direct voting 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 f8fbf00c4d Refactor new motion form processing
- extract form parsing into helper method app.decodePostForm
- extract field checks into form.Validate
2 years ago
Jan Dittberner 01b95f2253 Start notification job refactoring 2 years ago