Skip to content

Commit

Permalink
Merge pull request ResearchKit#117 from Erin-Mounts/username->email-r…
Browse files Browse the repository at this point in the history
…efactor

username->email refactor
  • Loading branch information
syoung-smallwisdom committed May 17, 2016
2 parents f58ea53 + 10cd571 commit 5d2c558
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions APCAppCore/APCAppCore/DataSubstrate/Model/APCUser+Bridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ - (void)signInOnCompletion:(void (^)(NSError *))completionBlock
else
{
NSParameterAssert(self.password);
[SBBComponent(SBBAuthManager) signInWithUsername: self.email
password: self.password
completion: ^(NSURLSessionDataTask * __unused task,
id responseObject,
NSError *signInError)
[SBBComponent(SBBAuthManager) signInWithEmail: self.email
password: self.password
completion: ^(NSURLSessionDataTask * __unused task,
id responseObject,
NSError *signInError)
{
dispatch_async(dispatch_get_main_queue(), ^{
if (!signInError || signInError.code == SBBErrorCodeServerPreconditionNotMet) {
Expand Down Expand Up @@ -673,7 +673,7 @@ - (void)authManager:(id<SBBAuthManagerProtocol>) __unused authManager didGetSess
self.sessionToken = sessionToken;
}

- (NSString *)usernameForAuthManager:(id<SBBAuthManagerProtocol>) __unused authManager
- (NSString *)emailForAuthManager:(id<SBBAuthManagerProtocol>) __unused authManager
{
return self.email;
}
Expand Down

0 comments on commit 5d2c558

Please sign in to comment.