Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update AuthController to add user blocked check, used by E2E tests (#1404)
Leendert de Borst3d9714e9d18b
diff --git a/apps/server/AliasVault.Api/Controllers/AuthController.cs b/apps/server/AliasVault.Api/Controllers/AuthController.csindex 4502f91b5..4a660acdb 100644--- a/apps/server/AliasVault.Api/Controllers/AuthController.cs+++ b/apps/server/AliasVault.Api/Controllers/AuthController.cs@@ -87,6 +87,12 @@ public class AuthController(IAliasServerDbContextFactory dbContextFactory, UserMreturn Unauthorized();}+ // Check if the user account is blocked+ if (user.Blocked)+ {+ return Unauthorized(ApiErrorCodeHelper.CreateErrorResponse(ApiErrorCode.ACCOUNT_BLOCKED, 401));+ }+// Get latest vault revision numbervar latestVault = user.Vaults.OrderByDescending(x => x.RevisionNumber).FirstOrDefault();var latestRevision = latestVault?.RevisionNumber ?? 0;