Commit graph

215 commits

Author SHA1 Message Date
c1b8fd3c89 update to final release of rocket_cors 0.6.0-alpha3 2023-11-17 11:24:00 +01:00
f85aa12eef clippy 2023-11-15 21:11:49 +01:00
b4271853a9 rocket v0.5-rc4 with some adjustements:
- all db access are done with transactions
- Forwards in Outcomes return a status
2023-11-15 21:01:22 +01:00
e6d3329f6f sqlx v0.7.x 2023-11-15 20:10:40 +01:00
2e5a1b0c42 oauth: token route: client_id is not required if basic auth is present 2023-10-24 09:18:07 +02:00
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
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