48 lines
569 B
JavaScript
48 lines
569 B
JavaScript
|
/**
|
||
|
* Auth controller
|
||
|
*/
|
||
|
|
||
|
function indexPage(req, res) {
|
||
|
res.redirect('/auth/login');
|
||
|
}
|
||
|
|
||
|
function loginPage(req, res) {
|
||
|
res.render('auth/login');
|
||
|
}
|
||
|
|
||
|
function login(req, res) {
|
||
|
|
||
|
}
|
||
|
|
||
|
function logout(req, res) {
|
||
|
|
||
|
}
|
||
|
|
||
|
function registerPage(req, res) {
|
||
|
res.render('auth/register');
|
||
|
}
|
||
|
|
||
|
function register(req, res) {
|
||
|
|
||
|
}
|
||
|
|
||
|
function forgotPassword(req, res) {
|
||
|
|
||
|
}
|
||
|
|
||
|
function resetPassword(req, res) {
|
||
|
|
||
|
}
|
||
|
|
||
|
const auth = {
|
||
|
indexPage,
|
||
|
login,
|
||
|
loginPage,
|
||
|
logout,
|
||
|
register,
|
||
|
registerPage,
|
||
|
forgotPassword,
|
||
|
resetPassword
|
||
|
}
|
||
|
|
||
|
module.exports = auth;
|