17 Commits

Author SHA1 Message Date
3696bbde43 Check empty secret in other spots
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-03-01 18:37:07 +00:00
dae6185857 Prevent startup on empty secret
Some checks failed
continuous-integration/drone/push Build is failing
2022-03-01 18:33:46 +00:00
578e7d071c Get session secret from env instead of hardcoding
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2022-02-20 22:51:54 +00:00
c03d16878a Minimal linting improvements 2022-02-20 21:19:28 +00:00
d815e8c3cd Ignore forcetypeassert for token map 2022-02-20 21:00:30 +00:00
91b8cc06b2 imports, comments and formatting 2022-02-20 20:58:48 +00:00
96b514ccf8 Fix capitalization of errors 2022-02-20 20:42:16 +00:00
c5be03ab6b Extract error consts 2022-02-20 16:51:01 +00:00
02ba80a555 Some linting fixes 2022-02-19 21:53:30 +00:00
74a53954de Wrap more errors 2022-02-15 12:37:04 +00:00
16b59afc29 Abort if invalid token/data and wrap some errors 2021-12-06 21:12:32 +00:00
85ef7557c1 Use uuid.UUID everywhere and have postgres generate ids 2021-11-29 21:49:37 +00:00
5de7d32c30 Use goose for migrations 2021-11-08 22:24:21 +00:00
7c8698da86 Add ID to token 2016-12-27 00:28:05 +01:00
b5114beacf Accept user in CreateToken 2016-12-20 13:43:15 +01:00
308ff98830 Finish cleaning dependencies 2016-12-19 23:23:52 +01:00
1592e4e8cf Move login.go to jwt subpackage 2016-12-19 22:48:17 +01:00