misc: readded saml email error

This commit is contained in:
Sheen Capadngan
2024-11-14 19:37:13 +08:00
parent 4cb935dae7
commit 6bae3628c0

View File

@@ -122,6 +122,8 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
},
`email: ${email} firstName: ${profile.firstName as string}`
);
throw new Error("Invalid saml request. Missing email or first name");
}
const userMetadata = Object.keys(profile.attributes || {})