soundbirder/controllers/auth.js
2024-01-08 23:02:04 +01: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;