From 12eaaadaef17a90e343ae2ad229a090d292b345e Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Tue, 9 Sep 2025 21:59:12 -0700 Subject: [PATCH] Update for USER + SITE + Key = Value --- src/Server/Controllers/RedisController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server/Controllers/RedisController.cs b/src/Server/Controllers/RedisController.cs index 25f6a75..a337a0a 100644 --- a/src/Server/Controllers/RedisController.cs +++ b/src/Server/Controllers/RedisController.cs @@ -23,7 +23,7 @@ namespace Auth.Controllers { public async Task> Get(string JWT, string key) { Account? account = AuthJWT.ValidateJWTToken(JWT); if (account != null) { - RedisValue result = await _redisdb.StringGetAsync( account.Site + key); + RedisValue result = await _redisdb.StringGetAsync( account.ID + account.Site + key ); return Ok(result.ToString()); } else { return BadRequest("JWT Not Valid"); @@ -35,7 +35,7 @@ namespace Auth.Controllers { public async Task Set(string JWT, string key, string value) { Account? account = AuthJWT.ValidateJWTToken(JWT); if (account != null) { - await _redisdb.StringSetAsync(account.Site + key, value); + await _redisdb.StringSetAsync( account.ID + account.Site + key, value ); return Ok(); } else { return BadRequest("JWT Not Valid");