mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 05:29:33 +00:00
Improve verification and resend code logic, added oidc and ldap
This commit is contained in:
@@ -17,15 +17,15 @@ export const registerUserRouter = async (server: FastifyZodProvider) => {
|
||||
})
|
||||
},
|
||||
schema: {
|
||||
headers: z.object({
|
||||
referer: z.string().trim()
|
||||
body: z.object({
|
||||
token: z.string().trim()
|
||||
}),
|
||||
response: {
|
||||
200: z.object({})
|
||||
}
|
||||
},
|
||||
handler: async (req) => {
|
||||
await server.services.user.sendEmailVerificationCode(req.headers.referer);
|
||||
await server.services.user.sendEmailVerificationCode(req.body.token);
|
||||
return {};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user