mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Initial Commit
This commit is contained in:
21
app/controllers/login.js
Normal file
21
app/controllers/login.js
Normal file
@ -0,0 +1,21 @@
|
||||
module.exports = function(piler) {
|
||||
return {
|
||||
login: function(req, res) {
|
||||
res.render("login.jade", {
|
||||
js: piler.js.renderTags(),
|
||||
css: piler.css.renderTags()
|
||||
});
|
||||
},
|
||||
|
||||
error: function(req, res) {
|
||||
res.render("error.jade", {
|
||||
js: piler.js.renderTags(),
|
||||
css: piler.css.renderTags()
|
||||
});
|
||||
},
|
||||
logout: function(req, res) {
|
||||
req.logout();
|
||||
res.redirect('/');
|
||||
}
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user