mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
rename 2fa routes
This commit is contained in:
parent
863f94c8db
commit
838047bb4c
1 changed files with 7 additions and 3 deletions
|
@ -110,13 +110,17 @@ authRouter.use(
|
|||
authRouter.put("/signup", auth.signup);
|
||||
authRouter.post("/login", auth.login);
|
||||
authRouter.post("/logout", auth.logout);
|
||||
authRouter.post("/verify-totp", verifySessionUserMiddleware, auth.verifyTotp);
|
||||
authRouter.post(
|
||||
"/request-totp-secret",
|
||||
"/2fa/verify-code",
|
||||
verifySessionUserMiddleware,
|
||||
auth.verifyTotp,
|
||||
);
|
||||
authRouter.post(
|
||||
"/2fa/request-secret",
|
||||
verifySessionUserMiddleware,
|
||||
auth.requestTotpSecret,
|
||||
);
|
||||
authRouter.post("/disable-2fa", verifySessionUserMiddleware, auth.disable2fa);
|
||||
authRouter.post("/2fa/disable", verifySessionUserMiddleware, auth.disable2fa);
|
||||
authRouter.post("/verify-email", verifySessionMiddleware, auth.verifyEmail);
|
||||
authRouter.post(
|
||||
"/request-email-code",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue