I am interested in saving attributes to users in the database based on actions that are performed by my currentUser
. Based on the following code, I get the error message "User cannot be saved unless they have been authenticated via logIn or signUp"
NSString *IDToFetch = @"some_id";
PFQuery *query = [PFUser query];
[query whereKey:@"user_id" equalTo:IDToFetch];
PFUser *foundUser = (PFUser *)[query getFirstObject];
foundUser[@"new_column"] = @"Some text";
[foundUser saveEventually]; //here an exception is thrown
I was wondering if there is a work around to this where I could save attributes to the foundUser
without having to log that user on. Thanks for your help!