2fbf41ba8c
fix: use .append() and not Set-Cookie2
...
ci/woodpecker/push/build-and-publish Pipeline was successful
web dev is too confusing..
2025-07-19 19:10:36 +02:00
324137ce8b
refactor: rewrite entire codebase in axum instead of actix
...
Replaces actix with axum for web, allows us to use socket.io and gives us access to the tower ecosystem of middleware
breaks compatibility with our current websocket implementation, needs to be reimplemented for socket.io
2025-07-16 16:36:22 +02:00
3647086adb
feat: add endpoint to get logged in devices
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-07-13 18:06:23 +02:00
e8a9857e19
style: cargo fmt
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-07-10 15:37:45 +02:00
000f798e25
fix: reply with email already verified on attempted get request from account with verified email
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-07-06 01:57:21 +02:00
b00527633a
fix: return 404 when refresh token cookie is invalid
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-07-05 02:41:40 +02:00
8febba2816
fix: change logout to get request
...
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
accidentally left it as a post even though it should've been a get
2025-07-05 02:08:56 +02:00
e59f7b5a1f
style: cargo clippy & cargo fmt
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-07-02 20:47:59 +02:00
19f64d413c
feat: make it possible to automatically join user to a guild on registration
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-07-02 20:39:12 +02:00
407460d2aa
style: use const generic for token length instead of multiple functions
...
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
Simplifies codebase a bit and avoids having to add another function in future if we need another length of token
2025-06-25 13:25:39 +02:00
419f37b108
feat: move password reset tokens to valkey
...
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
Also just as useless to keep in DB
2025-06-03 11:03:52 +00:00
b223dff4ba
feat: move email tokens to valkey
...
No need to have them in permanent DB storage when they are temporary
2025-06-03 11:01:33 +00:00
7021c80f02
style: move structs to objects and split into several files for readability
2025-06-02 00:28:48 +02:00
8163d0d9c0
style: clippy & fmt
2025-05-31 17:51:04 +02:00
6783bd22a7
feat: add backend_url config option
...
ci/woodpecker/push/build-and-publish Pipeline failed
ci/woodpecker/push/publish-docs Pipeline was successful
Required for refresh_token cookie to work properly
2025-05-31 17:11:14 +02:00
4fce262551
docs: add documentation to logout endpoint
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-05-31 14:52:57 +02:00
60f0219e85
feat: add logout endpoint
ci/woodpecker/push/publish-docs Pipeline is pending
ci/woodpecker/push/build-and-publish Pipeline failed
2025-05-31 14:43:48 +02:00
38aab46534
style: rename refresh_token_cookie() to new_refresh_token_cookie() and fix error message when no refresh_token is found on refresh
2025-05-31 14:41:29 +02:00
d615f1392e
style: cargo clippy && cargo fmt
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-05-30 21:17:30 +02:00
501141b584
feat: add password reset
2025-05-28 23:13:41 +02:00
695ecd96f1
Merge branch 'main' into wip/email
2025-05-28 19:56:57 +02:00
9728769b8c
feat: add changing username, email and display_name to /me endpoint
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-05-28 17:36:23 +02:00
83f031779f
feat: add email verification system
...
Co-Authored-By: JustTemmie <git@beaver.mom>
2025-05-27 21:57:08 +02:00
b8cf21903e
feat: allow disabling of registration
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-26 23:41:20 +02:00
1cda34d16b
fix: remove more unwraps
...
ci/woodpecker/push/build-and-publish Pipeline was successful
found more unwraps that needed to be changed to ?
2025-05-26 22:26:47 +02:00
8605b81e7b
style: cargo clippy && format
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-24 01:09:17 +02:00
bf51f623e4
feat: migrate to diesel and new error type in auth
2025-05-23 12:55:27 +02:00
78e87b65ce
style: cargo fmt
2025-05-19 15:14:03 +02:00
c21762ac7e
refactor: cargo clippy
2025-05-19 15:13:52 +02:00
efae619cda
refactor(auth): use builtin actix Json deserialization
2025-05-19 15:04:41 +02:00
135375f5b7
Merge pull request 'wip/username-regex' ( #6 ) from wip/username-regex into main
...
ci/woodpecker/push/build-and-publish Pipeline was successful
Reviewed-on: #6
Reviewed-by: Radical <radical@radical.fun>
2025-05-05 01:16:31 +00:00
77245e98c5
refactor: combine crypto.rs with utils.rs
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-04 23:50:38 +02:00
8a1467c26a
Merge branch 'main' into wip/username-regex
2025-05-04 21:41:40 +00:00
ab5c85c4f5
fix: add numbers to username regex
2025-05-04 23:25:48 +02:00
c61f96ffe7
feat: expire refresh_token immediately on unauthorized response
2025-05-04 23:02:17 +02:00
0f897dc0c6
feat: return refresh_token in cookie
2025-05-04 22:13:28 +02:00
cbf0131d14
feat: switch to headers for auth
2025-05-04 19:09:12 +02:00
6c706d973e
style: use created_at instead of created
2025-05-04 19:09:06 +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
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
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
ci/woodpecker/push/build-and-publish Pipeline was successful
2025-05-02 15:20:22 +02:00
481c2c3648
feat: use a logging library
...
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