2022-08-28 09:14:02 +02:00
|
|
|
/**
|
|
|
|
* Auth controller
|
|
|
|
*/
|
|
|
|
|
|
|
|
function indexPage(req, res) {
|
|
|
|
res.redirect('/auth/login');
|
|
|
|
}
|
|
|
|
|
|
|
|
function loginPage(req, res) {
|
2022-08-29 07:26:21 +02:00
|
|
|
res.render('auth/login', {
|
2024-01-08 23:02:04 +01:00
|
|
|
title: req.i18n.__('SoundBirder - Login'),
|
2022-08-29 07:26:21 +02:00
|
|
|
locale: req.i18n.locale
|
|
|
|
});
|
2022-08-28 09:14:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function login(req, res) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function logout(req, res) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function registerPage(req, res) {
|
2022-08-29 07:26:21 +02:00
|
|
|
res.render('auth/register', {
|
2024-01-08 23:02:04 +01:00
|
|
|
title: req.i18n.__('SoundBirder - Register'),
|
2022-08-29 07:26:21 +02:00
|
|
|
locale: req.i18n.locale
|
|
|
|
});
|
2022-08-28 09:14:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function register(req, res) {
|
2022-08-29 07:26:21 +02:00
|
|
|
|
2022-08-28 09:14:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function forgotPassword(req, res) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function resetPassword(req, res) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const auth = {
|
|
|
|
indexPage,
|
|
|
|
login,
|
|
|
|
loginPage,
|
|
|
|
logout,
|
|
|
|
register,
|
|
|
|
registerPage,
|
|
|
|
forgotPassword,
|
|
|
|
resetPassword
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = auth;
|