Fix errors

This commit is contained in:
Owen
2026-02-09 20:17:14 -08:00
committed by Owen Schwartz
parent 1bf37b4509
commit c3b2ab4e35
2 changed files with 3 additions and 3 deletions

View File

@@ -280,7 +280,7 @@ authenticated.delete(
authenticated.put( authenticated.put(
"/org/:orgId/login-page", "/org/:orgId/login-page",
verifyValidLicense, verifyValidLicense,
verifyValidSubscription(tierMatrix.customAuthenticationDomain), verifyValidSubscription(tierMatrix.loginPageDomain),
verifyOrgAccess, verifyOrgAccess,
verifyUserHasAction(ActionsEnum.createLoginPage), verifyUserHasAction(ActionsEnum.createLoginPage),
logActionAudit(ActionsEnum.createLoginPage), logActionAudit(ActionsEnum.createLoginPage),
@@ -290,7 +290,7 @@ authenticated.put(
authenticated.post( authenticated.post(
"/org/:orgId/login-page/:loginPageId", "/org/:orgId/login-page/:loginPageId",
verifyValidLicense, verifyValidLicense,
verifyValidSubscription(tierMatrix.customAuthenticationDomain), verifyValidSubscription(tierMatrix.loginPageDomain),
verifyOrgAccess, verifyOrgAccess,
verifyLoginPageAccess, verifyLoginPageAccess,
verifyUserHasAction(ActionsEnum.updateLoginPage), verifyUserHasAction(ActionsEnum.updateLoginPage),

View File

@@ -18,7 +18,7 @@ import config from "@server/lib/config";
import { APP_VERSION } from "@server/lib/consts"; import { APP_VERSION } from "@server/lib/consts";
export const newtGetTokenBodySchema = z.object({ export const newtGetTokenBodySchema = z.object({
// newtId: z.string(), newtId: z.string(),
secret: z.string(), secret: z.string(),
token: z.string().optional() token: z.string().optional()
}); });