Skip to content
Snippets Groups Projects

Auth

Merged Lucas Gabriel Lima requested to merge auth into development
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -175,7 +175,7 @@ userApp.post('/authenticate', (req, res, next) => {
else {
user.comparePassword(req.body.password, (err, isMatch) => {
if (isMatch && !err) {
var secret = config.get('mongodb:secret');
var secret = config.mongodb.secret;
// if user is found and password is right create a token
var token = jwt.encode(user, secret);
Loading