7a877b01bb
go: implement import of local breach data
continuous-integration/drone/push Build is passing
2023-08-20 05:20:33 +02:00
f8364605e4
go: add handling of argon2 to the password module
continuous-integration/drone/push Build is passing
2023-08-19 04:28:00 +02:00
600ef9d445
go: add a way to display upcoming db migrations
continuous-integration/drone/push Build is passing
2023-08-13 16:57:19 +02:00
eff9b1e0eb
go(deps): use gopkg.in/yaml.v3
continuous-integration/drone/push Build is passing
2023-08-10 19:10:57 +02:00
d9c3fc1d68
go(localbreach): tweak code,test for multidoc yaml
continuous-integration/drone/push Build is passing
2023-08-08 23:20:09 +02:00
c3a565adf5
go(localbreach): add test+testdata
continuous-integration/drone/push Build is passing
2023-08-07 22:10:48 +02:00
cd2a7ed6de
localbreach: add hashPeppered field
continuous-integration/drone/push Build is passing
2023-08-07 22:06:18 +02:00
1c67191c09
feat: implement user deletion
continuous-integration/drone/push Build is passing
2023-08-07 21:29:30 +02:00
85fe3d4c9d
go: replace deprecated 'ioutil' imports by 'os'
2023-07-19 21:29:22 +02:00
416012f80f
go(user_test): add explicit FailNow()
continuous-integration/drone/push Build is passing
2023-06-04 11:38:56 +02:00
5f8548958f
go: add usr updating [wip]
continuous-integration/drone/push Build is passing
2023-06-02 20:00:14 +02:00
ae5c4f1dd4
go,tmpl: add usr details listing
...
continuous-integration/drone/push Build is passing
* add tmpl
* add handler for route /manage/user/:id
* add convenience helper func
* handle not found/invalid uuid errors
2023-05-29 22:42:18 +02:00
11de8de558
go: add local breach data schema
continuous-integration/drone/push Build is passing
2023-05-26 01:59:09 +02:00
97ea29d043
add user listing
continuous-integration/drone/push Build is passing
2023-05-22 03:22:58 +02:00
6ce05ea74d
feat: add initial admin user creation
...
continuous-integration/drone/push Build is passing
have the app create the initial admin user:
* if the db has not yet been set up
* if there are not users
* if the config value for Init.CreateAdmin is True
* if the admin password is not empty
default username, email values can be seen in modules/user/const.go
2023-05-21 18:50:41 +02:00
3a2f85f683
feat: add license headers (+spdx id)
continuous-integration/drone/push Build is passing
2023-05-20 20:15:57 +02:00
852cc60a9e
go(funcmap): add sha384,sha512 funcs
continuous-integration/drone/push Build is passing
2023-05-14 22:53:25 +02:00
e8ac4e39ce
modules/funcmap: add funcs to calculate SRI hashes
...
continuous-integration/drone/push Build is passing
* correctly handle LiveMode resp. whether or not to set/read embeds
2023-05-12 00:11:23 +02:00
adeb6f5720
go: create funcmap,bluemonday modules
continuous-integration/drone/push Build is passing
2023-05-11 18:16:15 +02:00
1fb7479d8e
slogger: rename Logger to Slogger
continuous-integration/drone/push Build is passing
2023-05-11 17:06:20 +02:00
122ea638c9
go: refactor template rendering
...
continuous-integration/drone/push Build is passing
* create pkg 'modules/template'
* move template rendering code from 'handlers' to 'modules/template'
* update call sites
* walk the 'templates' dir to discover nested hierarchies
* solidify LiveMode handling (vs embedded assets)
* break out funcMap to it's own file
* general clean-up
2023-05-11 04:32:39 +02:00
a879704535
go: partially rework how slogging works
continuous-integration/drone/push Build is passing
2023-05-09 17:35:00 +02:00
eafc9c1e92
go,tmpl: conditionally show content to users
continuous-integration/drone/push Build is passing
2023-05-06 00:03:41 +02:00
b1ab686493
go: add db module for preps/checks
continuous-integration/drone/push Build is passing
2023-05-05 22:52:59 +02:00
0a5d4e7d30
go: use enttest in tests
continuous-integration/drone/push Build is passing
2023-05-03 23:21:47 +02:00
0ac668d001
mod/usr: fix typo [skip ci]
continuous-integration/drone/push Build is passing
2023-05-03 22:43:51 +02:00
4f2302143d
mod/user: rewrite some if statements as switches
continuous-integration/drone/push Build is passing
2023-05-03 22:42:08 +02:00
a2c17693c6
go: save,verify a bcrypt hash of the passwd
continuous-integration/drone/push Build is passing
2023-05-03 06:30:12 +02:00
5a3ce50bb2
mod/user: don't print out the raw usr object
continuous-integration/drone/push Build is passing
2023-05-03 06:09:44 +02:00
faefe3b577
mod/user: add check for when usr is not found
continuous-integration/drone/push Build is passing
2023-05-03 06:08:28 +02:00
593454d616
go: add user email handling + improve sessions
...
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
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
c6378d7dd3
pass logger ctx under key 'l'
continuous-integration/drone/push Build is passing
2023-04-19 05:18:01 +02:00
c6896bdee2
modules/password: simplify return
continuous-integration/drone/push Build is passing
2023-04-19 03:51:42 +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