bigly-video/client/login.js

17 lines
476 B
JavaScript
Raw Normal View History

2024-11-25 14:12:43 -05:00
import Route from "../route.js";
2024-11-25 14:12:43 -05:00
import auth from "../form/auth.js";
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:43 -05:00
let main = new Route([auth], async function (req, res, input) {
2024-11-25 14:12:44 -05:00
res.render('form', {
2024-11-25 14:12:43 -05:00
data: [
{ label: "Username", type: "text", name: "user" },
2024-11-25 14:12:44 -05:00
{ label: "Password", type: "password", name: "pass" },
2024-11-25 14:12:43 -05:00
],
2024-11-25 14:12:44 -05:00
'route': '/api/form/login?redirect=' + req.query.redirect,
2024-11-25 14:12:43 -05:00
'title': 'Login',
2024-11-25 14:12:44 -05:00
...input
2024-11-25 14:12:43 -05:00
});
2024-11-25 14:12:44 -05:00
return true;
2024-11-25 14:12:43 -05:00
});
export default main;