Skip to content

Commit

Permalink
fix: redirect to root host after verify
Browse files Browse the repository at this point in the history
  • Loading branch information
sylv committed Jun 18, 2024
1 parent f734277 commit e42fb2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/src/modules/user/user.controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Controller, Get, Param, Response } from "@nestjs/common";
import { type FastifyReply } from "fastify";
import { UserService } from "./user.service.js";
import { rootHost } from "../../config.js";

@Controller()
export class UserController {
Expand All @@ -13,6 +14,6 @@ export class UserController {
@Response() reply: FastifyReply,
) {
await this.userService.verifyUser(userId, verifyId);
return reply.redirect(302, "/login?verified=true");
return reply.redirect(302, rootHost.url + "/login?verified=true");
}
}

0 comments on commit e42fb2c

Please sign in to comment.