555bc65502
handlers: update error handling
...
continuous-integration/drone/push Build is passing
* have a common error page tmpl
2023-04-21 12:33:14 +02:00
edf720bcb9
go: create proper (non-string) ctx key in user pkg
continuous-integration/drone/push Build is passing
2023-04-19 23:44:49 +02:00
f00b5bdaf8
handlers: add a TODO [skip ci]
2023-04-19 23:23:22 +02:00
aa63dafad4
go(handlers): add bluemonday HTML sanitiser
...
continuous-integration/drone/push Build is passing
should aid at thwarting XSS.
2023-04-19 22:46:20 +02:00
25335293eb
chore: clean up handlers pkg
continuous-integration/drone/push Build is passing
2023-04-19 22:08:17 +02:00
c6378d7dd3
pass logger ctx under key 'l'
continuous-integration/drone/push Build is passing
2023-04-19 05:18:01 +02:00
608b0952b2
handlers: clean up
continuous-integration/drone/push Build is passing
2023-04-19 04:45:49 +02:00
773b10e60b
handlers: handle err on redirects
continuous-integration/drone/push Build is passing
2023-04-19 04:09:24 +02:00
ff252df692
handlers: streamline SignupPost
continuous-integration/drone/push Build is passing
2023-04-19 04:01:03 +02:00
62e038fa3e
simplify: funcMap member func
continuous-integration/drone/push Build is passing
2023-04-19 03:57:07 +02:00
58c9446130
handlers: clean up deadcode
continuous-integration/drone/push Build is passing
2023-04-19 03:48:47 +02:00
6ba09987a9
handlers: set cookie with SameSiteStrictMode
continuous-integration/drone/push Build is passing
2023-04-19 03:34:23 +02:00
33c9b8a30e
tmpl: fix 500 on logout
continuous-integration/drone/push Build is passing
2023-04-19 03:29:44 +02:00
8cc43bba13
go: switch to a custom slog-based logging solution
...
continuous-integration/drone/push Build is passing
* make all packages use the logger
* add a couple of convenience methods on the logger that enable
formatting using fmt syntax
2023-04-19 02:12:27 +02:00
f129606b8f
add bulk changes
...
continuous-integration/drone/push Build is passing
* add handlers for signin,singup,logout...
* introduce ent ORM and add user schema
* add live mode, devel mode to selectively turn on features via
config/flags
* add templates, handle embedding moar smarter:
* live mode uses live folder structure, else embedded templates are
used
* start using tailwindcss to style stuff
* add development goodies for hot-reloading (browser-sync - bs.js)
* pimp-up config.dhall with actual custom config Type (enables remote
schema and local values only as needed)
* add justfile (alternative to makefile for process automation)
2023-04-13 00:07:08 +02:00
5937a24ad9
go: add a handler for admin endpoint(s)
2023-03-22 23:11:14 +01:00