|
@@ -126,7 +126,7 @@ app.post('/login', (req, res) => {
|
|
res.send('Missing creds');
|
|
res.send('Missing creds');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- Repo.login(req.body.username req.body.password).
|
|
|
|
|
|
+ Repo.login(req.body.username, req.body.password).
|
|
then((user) => res.send(user)).
|
|
then((user) => res.send(user)).
|
|
catch(() => {
|
|
catch(() => {
|
|
res.status(403);
|
|
res.status(403);
|