I’m making a test app and I’m currently in the registering and login stage. I have some users in my table that I migrated from my Parse app, some I entered manually, and some I entered from code. I have no problem registering users. I have a problem logging them in.
As of right now, I can only login one user out of all the users in my users table (I have about 20). The only user I can login was added through my test apps code. Whenever I try to login the others I get an unspecified error that crashes my app.
What’s weird is I have other Users in my table that I added the same way as the one I can log in as - through code in my app - that I can’t login with. I made sure to have all the necessary table columns filled out (email, name, password) and also some added on my own. They all have the same columns filled out so they are identical in my table.
Here is my code:
Backendless.sharedInstance().userService.login(
"ejwalier3@gmail.com", password:"Test123",
response: { ( user : BackendlessUser!) -> () in
print("User has been logged in (ASYNC):")
},
error: { ( fault : Fault!) -> () in
print("Server reported an error: \(fault)")
}
)
Backendless.sharedInstance().userService.setStayLoggedIn( true )
And here is the error I get :http://support.backendless.com/public/attachments/4414d61762b5c9440d3c237a81821233.png</img>
As you can see I don’t really have anything to go off of. I can show you a picture of my users table if need be but it really just looks like a regular users table.
So, what is my problem? Why can’t I log in my users? Any help would be apprecitaed. Thanks!