Commit graph

207 commits

Author SHA1 Message Date
1478c516b3 ci: added gitea actions
commit f80f2b021611b77484ace51634df136ef5100c9f
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:30:50 2023 +0200

    cargo update

commit 8055f488d9f764a6f19ed33df79c90acc0caa92b
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:19:25 2023 +0200

    ci: formatting yml

commit a62e37dd3963981717d182c9cd9bce06f6ac9f3a
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:10:49 2023 +0200

    ci: tokei

commit 7c05cc674466a7ae494221d9924e0a84ac1d636f
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 18:00:50 2023 +0200

    fmt

commit a50c26294984e4f7ac3f96a34d544f26fd71d3a7
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:53:04 2023 +0200

    ci: clippy, fmt check

commit 9e09d900efd6d38aa55c28d0aca71c352d240367
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:35:47 2023 +0200

    ci: dont force all features

commit 1a3fc8d26678b15c66cbaffe4b9581f1fc1d2500
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:34:55 2023 +0200

    removed rust-toolchain.toml

commit ca110d611dc4fc7990b23c2db9853d786a2debd3
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:33:24 2023 +0200

    ci: using full github url

commit ab49ae807e3e2cc96ec0ff2351c67f467b5d88ae
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:32:46 2023 +0200

    ci: added rust workflow

commit ce9393451412327d61585862293209f4380eacec
Author: Philippe Loctaux <p@philippeloctaux.com>
Date:   Sun Jul 9 17:18:44 2023 +0200

    ci: initial commit with gitea actionsss
2023-07-09 19:02:23 +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
2e055e2037 removed comment 2023-05-06 20:27:39 +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
4bfc8a517f settings: get first admin 2023-05-03 21:47:00 +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
8658966b41 database: added totp codes migrations, get/add/use token 2023-05-01 11:57:41 +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