Commit graph

184 commits

Author SHA1 Message Date
1bd3cee6ea Dockerfile: follow unix convention for files, use config from file instead of env 2023-07-14 16:40:07 +02:00
cd7a894334 email: pass template_dir in config 2023-07-14 16:38:08 +02:00
cc8cf4ba55 ci: build musl binary, archive assets
ci: using new docker image

ci: skip the tar

ci: treat folders as folders

ci: bring back the tar

ci: paths

ci: new paths

ci: name the artifact
2023-07-10 00:08:38 +02:00
b135c49e75 config: function to extract config, using ezidam.toml to store ip address + folder of static assets 2023-06-29 18:40:45 +02:00
477656a42e email config: dont show error on deserialization failure 2023-06-29 18:39:07 +02:00
acbb1b2433 Rocket.toml: explicit templates directory 2023-06-29 18:14:06 +02:00
08c20f59a4 admin/users/view: always allow force password reset 2023-05-18 17:33:11 +02:00
27a6ae9a14 apps: get all: remove ezidam inside 2023-05-08 20:00:49 +02:00
a05646a19b admin dashboard: apps, users, roles, logins in the last 24 hours 2023-05-08 19:43:44 +02:00
264eee9044 admin dashboard -> admin panel 2023-05-08 19:15:46 +02:00
04b0b1dd05 jwt: get user roles in jwt 2023-05-08 18:13:09 +02:00
ba2bb90852 permissions: add/remove/view for roles 2023-05-08 17:57:56 +02:00
440f42ed2e permissions: homepage, sql + crate, add/remove/view for user 2023-05-08 17:15:21 +02:00
8dbeffddc9 admin/roles: update label 2023-05-07 18:59:00 +02:00
d778380d8b admin/roles: view, archive and restore 2023-05-07 18:39:02 +02:00
8fa2fb7ddc admin/roles: new role 2023-05-07 18:15:23 +02:00
efaf2bda5a roles: sql, crate, struct, id, rocket id, list page 2023-05-07 12:26:29 +02:00
d803c9f546 admin/apps: prompt before regenerating secret 2023-05-06 16:49:56 +02:00
37c5127bbc admin/maintenance: sqlite vacuum 2023-05-06 16:38:22 +02:00
ff6c910b2f admin/settings: maintenance page, show database size 2023-05-06 16:11:16 +02:00
3dfcd542bf minify: minify html on the fly in release mode 2023-05-06 13:15:43 +02:00
895d3ad117 icons: fixed invalid closing svg tag 2023-05-06 13:15:24 +02:00
306f2a60c4 admin/users: add new user 2023-05-06 00:26:38 +02:00
85facf7dc6 jwt guard: option to allow or not first admin 2023-05-05 23:41:37 +02:00
05373a2800 admin/users: update username/name/email/admin status 2023-05-04 23:53:32 +02:00
bdd5eca9f1 username: type to parse username 2023-05-04 22:47:11 +02:00
0e77f7be5e justfile: start web server with in memory database 2023-05-04 22:44:02 +02:00
6ef88e79a1 clippy 2023-05-04 21:38:50 +02:00
bb2d8fed45 admin/users: force delete totp secret, totp backup 2023-05-04 21:28:07 +02:00
2418c8e124 admin/users: force delete paper key 2023-05-04 21:18:39 +02:00
f8afea4e70 admin/users: force password reset (now lasts for 24 hours), send email, show expiration 2023-05-03 23:46:40 +02:00
e600405f22 admin/users: view user, archive + restore 2023-05-03 21:49:25 +02:00
4a63bfa9a9 guards: new guard: get admin user that is not the logged-in admin 2023-05-03 21:48:38 +02:00
f82c6368e3 users: set archive status, totp_login_request: use all for user 2023-05-03 21:47:57 +02:00
0baeeadce9 redirect: when logging in to ezidam, if user has expired password reset token, delete it 2023-05-01 22:18:50 +02:00
da4b204601 totp: generate backup code, attempt to use backup code when checking totp, delete backup after successful use 2023-05-01 16:31:58 +02:00
830f1dc0ae oauth authorize: if totp request is present, redirect to totp verification page (since auth is not complete) 2023-05-01 12:01:06 +02:00
fd2d2672bb oauth authorize: if use has totp enable, generate a code, store in a cookie and redirect to totp verification page 2023-05-01 12:00:11 +02:00
fbbcb4e182 totp: added page to verify totp token 2023-05-01 11:58:29 +02:00
1e42208e6b guards: added TotpRequest guard 2023-05-01 11:58:02 +02:00
f891d2f940 updated api to create totp struct, get totp secret directly if it exists 2023-05-01 11:48:57 +02:00
e70d035c86 disable button and delay form submit: refactor in tera macro 2023-05-01 11:43:17 +02:00
f9ce7cd775 refresh token: use default instead of custom length (default is 64) 2023-05-01 11:42:21 +02:00
233e26520c totp: new crate, sql migration + queries, enable totp page, save secret in database 2023-04-25 23:37:24 +02:00
cb46556717 redirect: 2 seconds 2023-04-25 00:11:50 +02:00
3a6092ce4f authorize: delay form submission by 800ms 2023-04-22 13:51:31 +02:00
fa2d42e5da authorize: disable html submit button on click 2023-04-22 13:24:23 +02:00
a32d6b4807 forgot password: handling testing environment, no emails when testing 2023-04-22 12:56:09 +02:00
feb9f16bc9 forgot password: send emails 2023-04-22 01:27:24 +02:00
751a21485f forgot password: email and paper key, reset password 2023-04-19 18:03:38 +02:00