I'm getting the error, 'It is not possible to log in on a server
environment' when I try to post to /login (code below)
Why is this the case? What's the logic in making people do this client
side? I can do Parse.User.signUp() on the server without any problems.
app.post('/login', function (req, res) { var username = req.body.username;
var password = req.body.username; console.log(username) Parse.User.logIn(
username, password, { success: function(user) { response.redirect('/') },
error: function(user, error) { console.log(error); } });})
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/fd87f5b7-52c2-4518-91e6-a71bbb7adf65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.