Reputation: 243
I perform authentication with passport.js. However after session is created, after each AJAX request RoboForm asks to save password. Can't figure out what could be the reason.
Accept:/
Accept-Encoding:gzip, deflate, sdch, br
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:connect.sid=s%3AjvQRBQY...
Host:localhost:3000
If-None-Match:W/"140-3603896551"
Referer:http://localhost:3000/
User-Agent:Mozilla/5.0
Connection:keep-alive
Date:Wed, 26 Apr 2017 11:42:51 GMT
ETag:W/"140-3603896551"
X-Powered-By:Express
app.get('/users', function(req,res) {
if(typeof req.user == 'undefined'){
res.status(403).end();return;
}
users.get(function(error,results){
if(error !== null){
res.json({"error":"Error getting users"})
}else {
res.json(results);
}
});
});
Upvotes: 0
Views: 118
Reputation: 102
This strikes me as a client-side problem. Roboform is triggered by an action on the client so in order to help more it would be good to see your Angular controller/service code.
Thanks!
Upvotes: 1