Commit Graph
40 Commits
Author SHA1 Message Date
Brandon Thomas 60d4199216 fix logout
The reason this is so labyrinthine is because of the users and billing
components. They bind dynamic behaviors that are defined in
storyteller-web (one of them being clearing the redis session cache).

Actually, the users component _didn't_, because it was defined in the
billing component. So I hoisted it out into a new component library.

In the fullness of time I imagine all of this will be consolidated back
under storyteller-web so we don't have to worry about binding actions at
a distance.

Anyway, this is tested and works locally.
2023-12-14 16:58:37 -05:00
Brandon Thomas d777346520 Update seed tool to seed TT2 models 2023-11-27 18:31:42 -05:00
Brandon Thomas bd4644098f Upgrade sqlx to latest (0.7.2)
Hypothetically this unblocks native rustls over IP address. If so, we
can drop native OpenSSL and Ubuntu packages and make a much simpler
build.

See this issue:
https://github.com/launchbadge/sqlx/issues/1095#issuecomment-798050828

Had to deal with a few migration issues,

- changes to transactor types:
  https://github.com/launchbadge/sqlx/issues/2606

- changes to sqlx_core that impacted our serialization/deserialization macros
2023-11-19 23:25:52 -05:00
Brandon Thomas c7c7c5b798 email-job 2023-11-15 22:31:18 -05:00
Brandon Thomas dd3c87b712 don't leak accounts 2023-11-12 07:02:39 -05:00
Brandon Thomas 7dc7afd244 environmental reset link 2023-11-12 05:16:53 -05:00
Brandon Thomas f1d3566f30 login after password reset 2023-11-12 04:24:47 -05:00
Brandon Thomas 3852851f65 'success' fields, cleanup 2023-11-12 02:52:26 -05:00
Brandon Thomas a69d0f7b9a redemption works 2023-11-11 19:56:23 -05:00
Brandon Thomas e068af0e1c wip redemption 2023-11-11 16:23:30 -05:00
Brandon Thomas c6a111bb4c smtp wired up 2023-11-11 14:53:58 -05:00
Brandon Thomas 9ce771f571 fix crockford-encoded entropy 2023-11-10 16:27:30 -05:00
Jacob Conley 5892fb1f14 Fixed implementation up to the point of sending the email 2023-11-10 16:14:24 -05:00
Jacob Conley 16d6542911 Beginning password reset implementation
- Email send is not implemented yet
 - All of this is still untested, clearly
2023-11-10 16:13:58 -05:00
Brandon Thomas 9c856235fc write avt cookie token to inference jobs 2023-10-24 05:04:00 -04:00
Brandon Thomas 724ae2570e How did this ever work!? 2023-10-24 03:56:38 -04:00
Brandon Thomas 022aa523cb fix cookie paths ? 2023-10-19 05:56:15 -04:00
Brandon Thomas 6d01506bd1 fix cookie path 2023-10-19 05:53:44 -04:00
Brandon Thomas d5b28d2d3e Start setting AVT cookie on /v1/session endpoint 2023-10-19 04:24:50 -04:00
Brandon Thomas c3e5b42bf3 use JwtSigner for session cookie 2023-10-19 02:39:17 -04:00
Brandon Thomas 66442d9eda Cookie stuff - JWT signer, anonymous visitor cookies, etc.
- JWT signer is reusable, tested

- AVT cookies improve the anonymous user experience and will help
  internal analytics
2023-10-19 01:37:50 -04:00
Brandon Thomas 6e76cd3da6 Cleanup identifiers (tokens package) 2023-10-09 23:00:11 -04:00
Brandon Thomas 699bb6a6a7 Clion auto-optimize imports, remove dead imports, Clippy lint 2023-09-20 01:39:58 -04:00
Brandon Thomas 9a7b746460 return statement lint 2023-08-21 00:23:09 -04:00
Brandon Thomas f41833e4f4 cargo cranky: &'static 2023-08-15 23:56:03 -04:00
Brandon Thomas bd9c4d752f move includes to single root dir 2023-08-15 23:42:01 -04:00
Brandon Thomas 039e61499f fix routes generics / upgrade generics on routing pieces 2023-07-19 01:57:51 -04:00
Brandon Thomas 9dd91ce7cc only a few compile errors left with storyteller-web 2023-07-19 01:09:10 -04:00
Brandon Thomas e43feeb700 add random avatar/color to several endpoints 2023-03-25 19:54:12 -04:00
Brandon Thomas 215b727bc1 create comment, delete comment handlers (not tested) 2023-03-18 03:54:30 -04:00
Brandon Thomas 98d30917e5 rename crate 'database_queries' -> 'mysql_queries' because sqlite 2023-03-18 01:19:15 -04:00
Brandon Thomas ff22319c77 purge session cache with billing endpoints 2023-03-12 05:17:37 -04:00
Brandon Thomas 16f2d5557b clear session cache when user is edited 2023-03-12 04:49:59 -04:00
Brandon Thomas e5cdb84c52 correct cache key 2023-03-12 04:34:50 -04:00
Brandon Thomas 8079be9f7e progress with generics 2023-03-12 04:25:44 -04:00
Brandon Thomas 2821240cc0 generic over executor types 2023-03-12 04:12:22 -04:00
Brandon Thomas ae0522419a this *should* work - need to work on non-pooled version 2023-03-12 03:11:33 -04:00
Brandon Thomas 46bb4274ca work in progress session caching (redis) 2023-03-12 03:00:47 -04:00
Brandon Thomas 75014a673a cache user profiles with redis 2023-03-11 06:41:51 -05:00
Brandon Thomas 088535cb5a refactor/move "plugins" crate to pertain only to services 2023-02-02 00:40:01 -05:00