Commit graph

14 commits

Author SHA1 Message Date
11582d3590 Update linter config and apply suggestions
- remove copyright years (they are in git)
- remove outdated linter bug workarounds
- update .golangci.yml to match current schema (as of golangci-lint 1.59.0)
2024-06-08 12:51:34 +02:00
c2eef9cf7c Refactoring away from main package
Some checks failed
cacert-boardvoting/pipeline/head There was a failure building this commit
This commit is a refactoring of code that has been located in the main
package. We introduce separate packages for the main application, jobs,
notifications, and request handlers.

Dependencies are injected from the main application, this will make
testing easier.
2022-10-15 19:58:58 +02:00
c1c9ed5dec Fix golangci-lint warnings 2022-09-26 11:58:36 +02:00
7f0b52c5b5 Fix linter warnings 2022-05-29 15:43:45 +02:00
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
2022-05-29 15:36:27 +02:00
c3d0733e27 Replace gorilla/csrf with justinas/nosurf
- replace dependency for less indirect dependencies
- remove unused configuration options
2022-05-26 17:25:25 +02:00
d5d7525a31 Tighten http timeout settings 2022-05-26 16:53:52 +02:00
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
2022-05-26 15:27:25 +02:00
aa3a1b0cc7 Implement database mapping for vote types 2022-05-22 21:47:27 +02:00
e1af6876c1 Implement new motion form
- add session handler
- add form decoder from go-playground
- implement custom decoder for VoteType
2022-05-22 21:15:54 +02:00
4ce321dc36 Implement security headers and HTTPS 2022-05-22 11:02:37 +02:00
68d6f4bcdc Reimplement decision close job 2022-05-21 13:51:17 +02:00
01b95f2253 Start notification job refactoring 2022-05-15 20:10:49 +02:00
ec7d2fe324 Start refactoring to packages 2022-05-09 21:09:24 +02:00