pull/28/head v1
Facinorous-420 2 years ago
parent aafe319c9d
commit b15442a49b

@ -39,11 +39,13 @@ export const authRoutes = (app: Router) => {
// When logout, redirect to client
app.get("/auth/logout", (req: Request, res: Response) => {
const user = req.user
req.logout()
req.logout({ keepSessionInfo: false }, null)
req.flash('success_alert_message', 'You have been succesfully logged out')
return res.redirect("/login")
})
// Auth with local passport, send them to ricky boy to prevent brute forcing 'cause Im too lazy to add proper captcha rn
app.post(
"/auth/login",

Loading…
Cancel
Save