Commit Graph

799 Commits

Author SHA1 Message Date
Derrick Hammer 829852c6c1
refactor: use new error struct and error messages 2024-02-14 00:24:22 -05:00
Derrick Hammer 593d8ea381
refactor: ensure key is unique 2024-02-14 00:13:28 -05:00
Derrick Hammer 41a6772c9f
chore: emailverifier no longer needed here 2024-02-13 23:32:23 -05:00
Derrick Hammer 143a563a51
refactor: param consistency changes 2024-02-13 23:31:08 -05:00
Derrick Hammer 8b9471aa04
refactor: switch to GetUserFromContext 2024-02-13 23:29:48 -05:00
Derrick Hammer 634a285ea8
refactor: use uint and param consistency changes 2024-02-13 23:29:36 -05:00
Derrick Hammer 96758a5559
feat: add opt support to account, refactor validation api 2024-02-13 23:23:45 -05:00
Derrick Hammer 431dec55f9
feat: otp api support 2024-02-13 23:23:01 -05:00
Derrick Hammer 16689f6c31
feat: add GetUserFromContext 2024-02-13 23:22:36 -05:00
Derrick Hammer 9d25690d72
feat: add OTP to user model 2024-02-13 23:21:53 -05:00
Derrick Hammer 93e7563bed
refactor: don't use pointer receiver 2024-02-13 22:38:13 -05:00
Derrick Hammer f645499c7f
refactor: prefix all jwt helpers 2024-02-13 22:31:44 -05:00
Derrick Hammer 50c4d8b945
refactor: clean up use of auth middleware in s5 2024-02-13 22:25:50 -05:00
Derrick Hammer 0b3d54e7c5
refactor: major middleware refactor 2024-02-13 22:17:34 -05:00
Derrick Hammer 9f6f2c9c87
feat: add purpose to jwt with consts 2024-02-13 20:58:17 -05:00
Derrick Hammer 764a7cbdaf
feat: add iat to jwt 2024-02-13 20:53:38 -05:00
Derrick Hammer 171b810504
fix: remove duplicate check 2024-02-13 20:01:45 -05:00
Derrick Hammer 8423578bdd
refactor: more re-organizing 2024-02-13 20:00:16 -05:00
Derrick Hammer f5bb0fa45f
chore: remove un-used function 2024-02-13 19:58:24 -05:00
Derrick Hammer 2d3b755cb2
refactor: update use of LoginPassword 2024-02-13 19:58:00 -05:00
Derrick Hammer 9b748e1f57
refactor: de-duplicate login logic and re-organize code 2024-02-13 19:57:41 -05:00
Derrick Hammer 40b830d669
refactor: update account login and ip address in LoginPassword 2024-02-13 19:52:18 -05:00
Derrick Hammer 23113d0f9c
refactor: create updateAccountInfo 2024-02-13 19:49:08 -05:00
Derrick Hammer 6f61f09ba4
refactor: move email validation to gorm 2024-02-13 19:41:00 -05:00
Derrick Hammer 302821d749
refactor: more refactoring of methods and move some validation to gorm 2024-02-13 19:36:23 -05:00
Derrick Hammer 3e629cf46e
refactor: update usage of account methods 2024-02-13 19:29:37 -05:00
Derrick Hammer bbb68aecb5
refactor: use EmailExists and add logging 2024-02-13 19:28:23 -05:00
Derrick Hammer 99c440ab88
refactor: unify account exists methods 2024-02-13 19:28:04 -05:00
Derrick Hammer 5598660176
refactor: un-export all s5 http handlers 2024-02-13 19:10:24 -05:00
Derrick Hammer 3c55ed2853
feat: add initial account services api 2024-02-13 19:07:24 -05:00
Derrick Hammer 75d9c7f46e
feat: add first and last name to user model 2024-02-13 19:06:04 -05:00
Derrick Hammer 78accd1f02
fix: add missing content responses to upload api's 2024-02-13 00:32:16 -05:00
Derrick Hammer 04948bde2c
fix: duplicate imports 2024-02-09 20:35:48 -05:00
Derrick Hammer 94fd1a6af0
fix: put buf generate command 1st 2024-02-09 16:06:07 -05:00
Derrick Hammer a43957b1db
chore: unneeded const 2024-02-09 15:58:44 -05:00
Derrick Hammer 227ac9b403
fix: wrong proof extension 2024-02-09 15:58:15 -05:00
Derrick Hammer a4afda0ecc
feat: add proof download s5 protocol file discovery 2024-02-09 15:55:04 -05:00
Derrick Hammer 0c00e2e7d9
feat: add proof download support to download endpoint 2024-02-09 15:49:34 -05:00
Derrick Hammer 850b575e1c
feat: add Proof method to fetch bao file 2024-02-09 15:43:38 -05:00
Derrick Hammer 28d966cbe2
refactor: switch to using a Params struct and store Renter 2024-02-09 15:42:53 -05:00
Derrick Hammer e7ac46de32
fix: update method calls and hash object usage 2024-02-09 15:28:50 -05:00
Derrick Hammer fc9724df2c
refactor: change PutFileSmall return value 2024-02-09 15:28:28 -05:00
Derrick Hammer c790c525ae
feat: implement adding bao hashing and uploading proofs 2024-02-09 15:23:33 -05:00
Derrick Hammer 2a1abb852b
refactor: have bao hash return totalReadSize 2024-02-09 15:22:46 -05:00
Derrick Hammer fc61da0d01
feat: add bao blake3 support via go-plugin grpc 2024-02-09 15:05:16 -05:00
Derrick Hammer b939ea109c
refactor: add tags to swagger 2024-02-07 20:31:42 -05:00
Derrick Hammer 7c945f0a2d
refactor: clean up and remove version check 2024-02-07 20:21:44 -05:00
Derrick Hammer 89cdd01698
fix: update swagger json url 2024-02-07 20:20:13 -05:00
Derrick Hammer 8e04de591e
fix: add content type header to byteHandler 2024-02-07 20:19:56 -05:00
Derrick Hammer 172b040365
refactor: more refactoring on swagger handlers 2024-02-07 20:19:22 -05:00