PFUser(Deprecated)

@interface PFUser (Deprecated)

This category lists all methods of PFUser that are deprecated and will be removed in the near future.

  • Signs up the user asynchronously.

    This will also enforce that the username isn’t already taken.

    Warning

    Make sure that password and username are set before calling this method.

    @deprecated Please use PFUser.-signUpInBackgroundWithBlock: instead.

    Declaration

    Objective-C

    - (void)signUpInBackgroundWithTarget:(nullable id)target
                                selector:(nullable SEL)selector;

    Parameters

    target

    Target object for the selector.

    selector

    The selector that will be called when the asynchrounous request is complete. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.

  • Makes an asynchronous request to login a user with specified credentials.

    Returns an instance of the successfully logged in PFUser. This also caches the user locally so that calls to +currentUser will use the latest logged in user.

    @deprecated Please use PFUser.+logInWithUsernameInBackground:password:block: instead.

    Declaration

    Objective-C

    + (void)logInWithUsernameInBackground:(nonnull NSString *)username
                                 password:(nonnull NSString *)password
                                   target:(nullable id)target
                                 selector:(nullable SEL)selector;

    Parameters

    username

    The username of the user.

    password

    The password of the user.

    target

    Target object for the selector.

    selector

    The selector that will be called when the asynchrounous request is complete. It should have the following signature: (void)callbackWithUser:(PFUser *)user error:(NSError *)error.

  • Makes an asynchronous request to become a user with the given session token.

    Returns an instance of the successfully logged in PFUser. This also caches the user locally so that calls to +currentUser will use the latest logged in user.

    @deprecated Please use PFUser.+becomeInBackground:block: instead.

    Declaration

    Objective-C

    + (void)becomeInBackground:(nonnull NSString *)sessionToken
                        target:(nullable id)target
                      selector:(nullable SEL)selector;

    Parameters

    sessionToken

    The session token for the user.

    target

    Target object for the selector.

    selector

    The selector that will be called when the asynchrounous request is complete. It should have the following signature: (void)callbackWithUser:(PFUser *)user error:(NSError *)error.

  • Send a password reset request asynchronously for a specified email and sets an error object.

    If a user account exists with that email, an email will be sent to that address with instructions on how to reset their password.

    @deprecated Please use PFUser.+requestPasswordResetForEmailInBackground:block: instead.

    Declaration

    Objective-C

    + (void)requestPasswordResetForEmailInBackground:(nonnull NSString *)email
                                              target:(nullable id)target
                                            selector:(nullable SEL)selector;

    Parameters

    email

    Email of the account to send a reset password request.

    target

    Target object for the selector.

    selector

    The selector that will be called when the asynchronous request is complete. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.