Commit Graph

14 Commits

Author SHA1 Message Date
surtur 96c0b53493
go,tmpl: implement+activate validator
All checks were successful
continuous-integration/drone/push Build is passing
also ad initial password change:
* switch the password field type to `password`
* add a field for repeated password
2023-09-08 22:56:17 +02:00
surtur f8364605e4
go: add handling of argon2 to the password module
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-19 04:28:00 +02:00
surtur eff9b1e0eb
go(deps): use gopkg.in/yaml.v3
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-10 19:10:57 +02:00
surtur 64f330b034
go: bump deps
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-02 15:14:44 +02:00
leo 32aa8d8852
go: add+enable compression middleware
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-31 22:42:50 +02:00
leo 11de8de558
go: add local breach data schema
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 01:59:09 +02:00
leo 9bbfbe923e
app: set debug lvl also to gommon Echo logger
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-11 04:48:24 +02:00
leo 0a34bca1c1
go: allow choosing db type, setting connstr
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-05 23:10:56 +02:00
leo 593454d616
go: add user email handling + improve sessions
All checks were successful
continuous-integration/drone/push Build is passing
* add Email field to User entity (+codegen)
* switch to Echo contrib sessions backed by Gorilla sessions
* use SessionCookieSecret value from the config
* stage mod,sum changes
* add clearer signup/signin redirect logic
* render error pages on 500/404s and only fall back to returning raw
  errors when the error is some unexpected kind
* add username/email "exists" funcs+tests - handle "not found" and "not
  unique" errors, return errors otherwise
2023-05-01 22:48:11 +02:00
leo aa63dafad4
go(handlers): add bluemonday HTML sanitiser
All checks were successful
continuous-integration/drone/push Build is passing
should aid at thwarting XSS.
2023-04-19 22:46:20 +02:00
leo 8cc43bba13
go: switch to a custom slog-based logging solution
All checks were successful
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
leo f129606b8f
add bulk changes
All checks were successful
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
leo 6194f36d73
go: add app struct bearing e,logger; own startup 2023-03-22 22:13:23 +01:00
leo b78fc9964d
add application that handles basic config 2023-03-19 22:03:12 +01:00