Somewhere between v1.4.1 and v1.5.0 on the parse npm, they made it so this 
error message is thrown. I just ran into this and was surprised because I'm 
running another server that logs in and has elevated credentials. I've also 
used node CLI as a way to add people to roles. I suddenly couldn't log in 
from Node on a new project I'm working on. I noticed my old project had 
1.4.1 of the parse npm and the new project was using 1.5.0. I modified my 
package.json to force the 1.4.1 and its working again.

On Sunday, July 19, 2015 at 6:56:23 PM UTC-4, Duncan Graham wrote:
>
> 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/30ca5d61-9c85-4fd1-969a-f68a41036098%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to