Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 16c7d18

Browse files
committed
Changing parameter name to be more accurate.
1 parent 1baa2f7 commit 16c7d18

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

WordPressKit/WordPressComServiceRemote.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ typedef void(^WordPressComServiceFailureBlock)(NSError *error);
5353
*
5454
* @param token Token provided by Apple.
5555
* @param email Apple email to use for new account.
56-
* @param userName The username for the new account. Formed from the Apple ID fullname.
56+
* @param fullName The user's full name for the new account. Formed from the fullname
57+
* property in the Apple ID credential.
5758
* @param clientID wpcom client ID.
5859
* @param clientSecret wpcom secret.
5960
* @param success success block.
6061
* @param failure failure block.
6162
*/
6263
- (void)createWPComAccountWithApple:(NSString *)token
6364
andEmail:(NSString *)email
64-
andUserName:(NSString *)userName
65+
andFullName:(NSString *)fullName
6566
andClientID:(NSString *)clientID
6667
andClientSecret:(NSString *)clientSecret
6768
success:(WordPressComServiceSuccessBlock)success

WordPressKit/WordPressComServiceRemote.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ - (void)createWPComAccountWithGoogle:(NSString *)token
8383

8484
- (void)createWPComAccountWithApple:(NSString *)token
8585
andEmail:(NSString *)email
86-
andUserName:(NSString *)userName
86+
andFullName:(NSString *)fullName
8787
andClientID:(NSString *)clientID
8888
andClientSecret:(NSString *)clientSecret
8989
success:(WordPressComServiceSuccessBlock)success
@@ -96,7 +96,7 @@ - (void)createWPComAccountWithApple:(NSString *)token
9696
@"service": @"apple",
9797
@"signup_flow_name": @"social",
9898
@"user_email": email,
99-
@"user_name": userName,
99+
@"user_name": fullName,
100100
};
101101

102102
[self createSocialWPComAccountWithParams:params success:success failure:failure];

0 commit comments

Comments
 (0)