login by password or totp

This commit is contained in:
Julian Krauser 2025-05-05 14:21:13 +02:00
parent a476bf6823
commit be22c78372
3 changed files with 39 additions and 12 deletions

View file

@ -1,8 +1,12 @@
import express from "express";
import { login, logout, refresh } from "../controller/authController";
import { kickof, login, logout, refresh } from "../controller/authController";
var router = express.Router({ mergeParams: true });
router.post("/kickof", async (req, res) => {
await kickof(req, res);
});
router.post("/login", async (req, res) => {
await login(req, res);
});