Fix infinite redirect by removing server route for email verification
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
parent
bf1e177885
commit
3a3d7768be
|
|
@ -238,10 +238,7 @@ export class ServerService implements OnApplicationShutdown {
|
|||
}
|
||||
});
|
||||
|
||||
fastify.get<{ Params: { code: string } }>('/verify-email/:code', async (request, reply) => {
|
||||
// Redirect to frontend page for verification
|
||||
reply.redirect(`/verify-email/${request.params.code}`);
|
||||
});
|
||||
// Email verification is now handled by frontend route /verify-email/:code
|
||||
|
||||
fastify.register(this.clientServerService.createServer);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue