diff --git a/Endpoints/ProfileEndpoint.cs b/Endpoints/ProfileEndpoint.cs index 0aeaf22..6a276c3 100644 --- a/Endpoints/ProfileEndpoint.cs +++ b/Endpoints/ProfileEndpoint.cs @@ -83,7 +83,7 @@ public static class ProfileEndpoint var user = await db.GetUser(userId); if (user == null || !auth.VerifyPassword(currentPassword, user.PasswordHash)) { - ctx.Response.StatusCode = 401; + ctx.Response.StatusCode = 403; await ctx.Response.WriteAsJsonAsync(new { error = "Aktuelles Passwort ist falsch" }); return; }