Commit graph

20 commits

Author SHA1 Message Date
ab5c85c4f5
fix: add numbers to username regex 2025-05-04 23:25:48 +02:00
e29940d080
feat: only allow lowercase usernames 2025-05-03 03:04:07 +02:00
b530de8f52
fix: username regex 2025-05-03 02:20:37 +02:00
bcf857d6b2 refactor: flatten login function
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 20:32:13 +02:00
0d07af7d79 feat: style: return unauthorized when token isnt found and flatten function structure
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 19:26:37 +02:00
c76fd73179 refactor: move regex code to mod.rs 2025-05-02 16:22:30 +02:00
97f7595cc5 style: cargo clippy and format
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 15:20:22 +02:00
481c2c3648 feat: use a logging library
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
gives us logs from actix and sqlx that otherwise arent exposed to us
2025-05-02 01:18:13 +02:00
22ab3d8a04 feat: add a way to revoke refresh_tokens using device_name 2025-05-01 20:19:39 +02:00
a89d705239 feat: use device_name in refresh_tokens table 2025-05-01 20:19:18 +02:00
705abeb643 fix: fix password regex
this should probably be moved to its own function so we can change it on the fly
2025-05-01 20:17:59 +02:00
2864196584 perf: avoid cloning when checking access 2025-05-01 20:12:02 +02:00
7b86706793 perf: dont needlessly update uuid in token 2025-05-01 19:19:35 +02:00
aea640a64c style: use the same response for login/register 2025-05-01 19:18:44 +02:00
83872ed7a6 feat: add a function to check access token
lets me reuse something that will happen often instead of having to write it manually in every file
2025-05-01 07:06:14 +02:00
0b516a269d fix: remove unused import 2025-05-01 07:04:56 +02:00
725a16d1f5 feat: integrate token authentication 2025-05-01 05:01:25 +02:00
1d0f8ecd00 feat: add refresh endpoint 2025-05-01 03:54:26 +02:00
b4469a6317 feat: prepare for access/refresh tokens in register 2025-05-01 03:54:26 +02:00
91398ecd5b style: move auth to own folder 2025-05-01 03:54:26 +02:00