Erro login

13 views
Skip to first unread message

Jaime Neves

unread,
Sep 25, 2015, 11:40:14 AM9/25/15
to LoopbackJS
Hello need help personnel. I'm starting with strongloop and loopback
when I log in the first time will normal. I log out when I try to log in again, this error appears.

message: "The` User` instance is not valid Details:. `email` Email already exists (value:" xxx ")."

Raymond Feng

unread,
Sep 25, 2015, 11:42:32 AM9/25/15
to loopb...@googlegroups.com
The validation error should only happen if you try to create a new user with the same email or username. Login should be fine. Do you use AP explorer? How to reproduce your problem?

Thanks,

---
Raymond Feng
Co-Founder and Architect @ StrongLoop, Inc. (An IBM Company)

StrongLoop makes it easy to develop APIs in Node, plus get DevOps capabilities like monitoring, debugging and clustering.

--
You received this message because you are subscribed to the Google Groups "LoopbackJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loopbackjs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loopbackjs/bbc8145d-5499-4e2a-adac-f5061648f553%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jaime Neves

unread,
Sep 25, 2015, 1:26:11 PM9/25/15
to LoopbackJS
So what's the correct way to make the logout function? I'm using this

return User
           .logout ()
           . $ promise
           .then (function (data) {
             console.log (data);
             $ rootScope.currentUser = null;
         
           });

but it seems he still leaves the session's active User.
Reply all
Reply to author
Forward
0 new messages