fix: allow admin OTP password status
Staging Backend Quality Gate / validate (push) Successful in 12m11s
Staging Backend Quality Gate / publish (push) Successful in 12m43s

This commit is contained in:
Jesse_Chen
2026-08-10 11:52:14 +08:00
parent 65bcef3001
commit 64382c879d
3 changed files with 51 additions and 4 deletions
@@ -10,7 +10,7 @@ export const dynamic = "force-dynamic";
async function userSession(request: Request) {
if (!isSelfHostedIdentityEnabled(process.env)) return null;
const config = readSelfHostedIdentityConfig(process.env);
if (resolveIdentitySurface(request.headers.get("host"), config) !== "user") {
if (!resolveIdentitySurface(request.headers.get("host"), config)) {
return null;
}
const services = getIdentityAuthServices();