Skip to content

Commit d5b17c5

Browse files
committed
Fix GetAuthorizationCode?
1 parent d32341d commit d5b17c5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

TODO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Hash authorisation codes with SHA256 to ensure read access to the database doesn't allow active download sessions to be hijacked
66
- Move env encryption from the service? Stash content and filenames don't need to be encrypted by it because the encryption keys for them are encrypted with the env var
77
- Crash signals don't seem to show up in Railway
8+
- Use hash to store code in signup links rather than search param, that way it doesn't show up in logs
89
- Allow creating signup links to change stash contents/password
910
- Use "Cache-Control": "no-store" on sensitive endpoints?
1011
- Disk usage keeps increasing. Maybe need to delete old job executions and logs? Implement the dump database endpoint so I can inspect

backend/server/endpoints/v1/users/getAuthorizationCode.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func GetAuthorizationCode(app *servercommon.ServerApp) gin.HandlerFunc {
4545
func(tx *ent.Tx, ctx context.Context) (*ent.User, error) {
4646
userOb, stdErr := tx.User.Query().
4747
Where(user.Username(body.Username)).
48+
WithMessengers().
4849
WithStash().
4950
Only(ctx)
5051
if stdErr != nil {

0 commit comments

Comments
 (0)