Meng Zhang
b85585ad72
feat: connect user register with backend api
2023-12-05 23:53:46 +08:00
Meng Zhang
74f81cb02a
refactor: Use DateTime<Utc> for sqlite datetime fields ( #946 )
...
* refactor: use DateTime<Utc> for RefreshToken.expires_at
* refactor: set other date time fields to be DateTime<Utc>
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-05 15:47:10 +00:00
Eric
73442c33a7
feat: implement refresh_token API ( #938 )
...
* feat: impl refresh token api
* resolve comment
2023-12-04 13:26:24 +08:00
Meng Zhang
f3a31082ef
refactor(webserver): extract RegisterError and TokenAuthError and add unit test ( #936 )
...
* refactor: extract RegisterError and TokenAuthError
* update
* update test
* fix token auth test
* cleanup
* fix
* add down operations
* cleanup error type
* [autofix.ci] apply automated fixes
* update
* cleanup
* Process InvalidationErrors directly
* update error handling
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-02 04:10:42 +00:00
Meng Zhang
fb879e5ddf
refactor(webserver): cleanup user crud ( #935 )
...
* refactor(webserver): cleanup user crud
* fix
2023-12-01 16:56:15 +00:00
Meng Zhang
19d773e7ad
feat: implement register api check with invitation code ( #934 )
...
* feat(webserver): implement is_admin_initialized graphql api
* refactor
* add unit test
* [autofix.ci] apply automated fixes
* renaming
* temp invitations
* update
* update
* implement register check
* test
* update invitations
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-02 00:14:29 +08:00
Meng Zhang
88e5187b57
feat(webserver): implement is_admin_initialized graphql api ( #929 )
...
* feat(webserver): implement is_admin_initialized graphql api
* refactor
* add unit test
* [autofix.ci] apply automated fixes
* renaming
* refactor: server -> locator
* fix unused
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-01 22:35:02 +08:00
Meng Zhang
5c52a71f77
refactor: extract ServiceLocator interface ( #933 )
...
* refactor: cleanup the dependency chain - ServerContext should be the only thing being public in server mod
* refactor ServiceLocator
* refactor: extract worker.rs
* refactor: move db as private repo of server
* rename server -> service
2023-12-01 22:16:59 +08:00