I’m calling:
Backendless.sharedInstance().persistenceService.of(BackendlessUser.ofClass()).save(Backendless.sharedInstance().userService.currentUser, response: { (object : AnyObject!) -> Void in
}, error: { (fault : Fault!) -> Void in
})
and getting an error:
FAULT = ‘3011’ [Properties ‘password’ are required] <Properties ‘password’ are required>
I’ve changed one String property. This code previously worked.
Please note that this happens when the user has already been logged in automatically. Also, currentUser exists and has an objectId.
Hi!
I’ve changed one String property. This code previously worked.
could you clarify which changes you made?
Strangely enough, it’s working again now and I didn’t change anything.
I looks like the backend for some reason didn’t recognize the user was logged in and prevented the unauthorized change. But I shouldn’t get any currentUser if I’m logged out, right?
currentUser should be nil if user is logged out. However, you mentioned that the error occurred when the user was logged in.
Correct, I will provide more details to the situation once I’m able to reproduce it again.
Ok. I’ll mark this one as “cannot reproduce” for now.