5.6 Change Password
To change password for a user on Bayun, use changePassword:newPassword:success:failure: method.
The method takes the following parameters :
currentPassword : Current Password.
dataType :
NSString
newPassword : New Password.
dataType :
NSString
success : Success block to be executed after password is successfully changed.
failure : Failure block to be executed if change password fails, returns
BayunError.
[[BayunCore sharedInstance] changePassword:@"currentPassword" newPassword:@"newPassword" success:^{
NSLog("Password changed successfully.");
} failure:^(BayunError error) {
NSLog("Change password failed.");
}];Last updated
Was this helpful?