-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1201 from firebase/nc/providerid
[Auth] Use 'password' for Email/Password provider ID
- Loading branch information
Showing
11 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,15 +85,15 @@ - (IBAction)onAuthorization:(id)sender { | |
BOOL shouldSkipPhoneAuthPicker = _authProviders.count == 1 && | ||
([firstProviderID isEqualToString:FIRPhoneAuthProviderID] || | ||
[firstProviderID isEqualToString:@ | ||
@"email"]); | ||
@"password"]); | ||
if (!shouldSkipPhoneAuthPicker) { | ||
UIViewController *controller = [self.authUIMock authViewController]; | ||
[self presentViewController:controller animated:YES completion:nil]; | ||
} else if ([firstProviderID isEqualToString:FIRPhoneAuthProviderID]) { | ||
FUIPhoneAuth *provider = _authProviders.firstObject; | ||
[provider signInWithPresentingViewController:self phoneNumber:nil]; | ||
} else if ([firstProviderID isEqualToString:@ | ||
@"email"]) { | ||
@"password"]) { | ||
FUIEmailAuth *provider = _authProviders.firstObject; | ||
[provider signInWithPresentingViewController:self email:nil]; | ||
} | ||
|
@@ -439,7 +439,7 @@ - (void)prepareForAccountManagerWithoutPasswordWithLinkedAccountWithEmail { | |
- (id)createPasswordProvider { | ||
id emailPasswordProviderMock = OCMProtocolMock(@protocol(FIRUserInfo)); | ||
OCMStub([emailPasswordProviderMock providerID]).andReturn(@ | ||
@"email"); | ||
@"password"); | ||
OCMStub([emailPasswordProviderMock email]).andReturn(@"[email protected]"); | ||
OCMStub([emailPasswordProviderMock displayName]).andReturn(@"password displayName"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters