soundbirder/controllers/auth.js
2023-07-29 18:21:40 +02:00

54 lines
760 B
JavaScript
Executable File

/**
* Auth controller
*/
function indexPage(req, res) {
res.redirect('/auth/login');
}
function loginPage(req, res) {
res.render('auth/login', {
title: req.i18n.__("SoundBirder - Login"),
locale: req.i18n.locale
});
}
function login(req, res) {
}
function logout(req, res) {
}
function registerPage(req, res) {
res.render('auth/register', {
title: req.i18n.__("SoundBirder - Register"),
locale: req.i18n.locale
});
}
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;