File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
APCAppCore/APCAppCore/DataSubstrate/Model Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ typedef NS_ENUM(NSInteger, APCUserConsentSharingScope) {
6161@property (nonatomic , strong ) NSString * email;
6262@property (nonatomic , strong ) NSString * password;
6363@property (nonatomic , strong ) NSString * sessionToken;
64+ @property (nonatomic , strong ) NSString * externalId;
6465@property (nonatomic ) NSString * subpopulationGuid;
6566
6667/* ********************************************************************************/
Original file line number Diff line number Diff line change 5151static NSString *const kEmailPropertyName = @" email" ;
5252static NSString *const kPasswordPropertyName = @" password" ;
5353static NSString *const kSessionTokenPropertyName = @" sessionToken" ;
54+ static NSString *const kExternalIdPropertyName = @" externalId" ;
5455
5556static NSString *const kSharedOptionSelection = @" sharedOptionSelection" ;
5657static NSString *const kTaskCompletion = @" taskCompletion" ;
@@ -274,6 +275,16 @@ -(void)setPassword:(NSString *)password
274275 [APCKeychainStore setString: [self hashIfNeeded: password] forKey: kPasswordPropertyName ];
275276}
276277
278+ - (NSString *)externalId
279+ {
280+ return [APCKeychainStore stringForKey: kExternalIdPropertyName ];
281+ }
282+
283+ -(void )setExternalId : (NSString *)externalId
284+ {
285+ [APCKeychainStore setString: externalId forKey: kExternalIdPropertyName ];
286+ }
287+
277288- (NSString *) hashIfNeeded : (NSString *) password
278289{
279290 // TODO: Implement hashing method
You can’t perform that action at this time.
0 commit comments