Hi this is a weird bug, all the sign up and login stuff works great using iOS backendless SDK, the bug occurs ONLY when I login with a facebook account, then call Backendless.sharedInstance().userService.logout with a completion block, then try to sign up with email and password, the error I get is FAULT = ‘3011’ [Property ‘password’ is required] <Property ‘password’ is required> I checked many times that password is being passed in to the sign up call and sign up works great if I didn’t logout from a facebook account. This a weird and edge case but wonder why this would happen.
Hello!
So you’re trying to login with the same credentials as for FaceBook, an then it fails? Or user accounts are different?
Thanks!
Alex
deleted comment
Ok, and what about this scenario?
- loginWithFacebookSDK()
- logout()
- register( email: validemail@foo.bar, password: xxxxx )
- login( email: validemail@foo.bar, password: xxxxx )
I mean, can you login with another credentials, not the facebook email and password?
Hi Alex, i have no problem logging in for facebook, the bug is I log in with facebook, no problem, I logout, no problem, but when I try to create a new account with email and password I get the error FAULT = ‘3011’ [Property ‘password’ is required] <Property ‘password’ is required>
If i login with email, and then logout, then sign up with new account with email and password this error does not show up
I’m not sure that I’ve got all your case clearly. Lets translate it into methods terms.
I guess that your scenario is the following:
- loginWithFacebookSDK()
- logout()
- login( email: facebookEmail, password: facebookPassword )
And it fails on step 3 with exception. Am I correct?
not login the third step is register with email and password, new account email and new password
I can’t get to step 4, the error occurs when I try to register( email: validemail@foo.bar, password: xxxxx )
this bug has nothing to do with facebook email and password, when i register an account with facebook there is no password generated and I know that, this bug is an edge case but I want to know why it happened in case it is related to other bugs that people might encounter in the future
for facebook i use Backendless.sharedInstance().userService.loginWithFacebookSDK(token, fieldsMapping: fieldsMapping, response: { (user: BackendlessUser!) -> Void in
which works fine
Ok, we’ve investigated your issue.
About first scenario: unfortunately, for today this behaviour is expected. If user has been registered as FB user, either as another social - then he wouldn’t be able to login through “login” method. We’ve placed this issue in our backlog, but it’s priority is low because the use case, as you’ve mentioned, is edge.
But it looks strange that you cannot login even with another credentials after logging out. We shall keep on investigation.
Thank you!
Alex
Hi Olive,
We have reproduced this issue, we will let you know when it will be fixed.
Regards,
Slava
Awesome, thanks guys!
@Vyacheslav hey buddy is there a way to clear all cache in the iOS SDK and reset to original state like when the app is just installed? that way I can do that after a user logout to avoid this problem, and I feel like everytime I make big changes to the database some old data is still cached in the SDK, because our app is not released I can tell the investors to delete the app and install it again, but can’t really tell the customers that
@Alexandr hey alex is there a way to clear all cache in the iOS SDK and reset to original state like when the app is just installed? that way I can do that after a user logout to avoid this problem, and I feel like everytime I make big changes to the database some old data is still cached in the SDK, because our app is not released I can tell the investors to delete the app and install it again, but can’t really tell the customers that
Internal task BKNDLSS-12973 was created.
The temporary solution is to use:
user.setProperty("email", object:email)
user.setProperty("password", object:password)
instead
user.email = email
user.password = password
Now we are investigating the cause of the issue and let you know about a result.
awesome thank you!!!
This issue is fixed, please update the latest Backendless SDK (pod 3.0.37 release) or from ios-SDK github (CommLibiOS and backendless).