Skip to content

Commit

Permalink
Merge pull request ResearchKit#111 from Erin-Mounts/master
Browse files Browse the repository at this point in the history
[BRIDGE-1183] 409 on consent just means...
  • Loading branch information
syoung-smallwisdom committed Mar 11, 2016
2 parents 301e8d5 + 03c9f08 commit 6bd5748
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -771,7 +771,10 @@ - (void)handleSigninResponseWithError:(NSError *)error {
}

- (void)handleConsentResponseWithError:(NSError *)error {
if (error) {
// 409 Conflict in this context means consent already signed, which happens if a user tries to re-sign-up
// with an existing email account rather than signing in with it. In any case it means they've already signed
// the consent so we can just mark the user as consented and move on.
if (error && error.code != 409) {
APCLogError2(error);
[self showConsentError: error];
}
Expand Down

0 comments on commit 6bd5748

Please sign in to comment.