mirror of
https://gitlab.com/nekoya/web.git
synced 2024-12-22 14:35:01 +01:00
Remove unused code
This commit is contained in:
parent
db3d0ea344
commit
f4bfe8d043
1 changed files with 0 additions and 2 deletions
|
@ -27,9 +27,7 @@ router.route('/login')
|
|||
})
|
||||
.post((req, res) => {
|
||||
controller.login(req.body.email, req.body.password, req.headers['user-agent'], req.headers['x-forwarded-for'] || req.socket.remoteAddress).then(data => {
|
||||
console.log(data);
|
||||
if (data[0] == 200) {
|
||||
console.log(data[1])
|
||||
res.render("pages/index");
|
||||
} else if (data[0] == 204){
|
||||
res.render('pages/login', {
|
||||
|
|
Loading…
Reference in a new issue