Skip to content

Commit eb6237c

Browse files
authored
Merge pull request #604 from Granfalloner/SignInCompletionFix
Fixed dismissal/completion handling in email sign in controller
2 parents b3c1c3c + b049230 commit eb6237c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

EmailAuth/FirebaseEmailAuthUI/FUIPasswordSignInViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ - (void)signInWithDefaultValue:(NSString *)email andPassword:(NSString *)passwor
168168
return;
169169
}
170170
}
171-
[self.navigationController dismissViewControllerAnimated:YES completion:^{
171+
172+
[self dismissNavigationControllerAnimated:YES completion:^{
172173
if (self->_onDismissCallback) {
173174
self->_onDismissCallback(authResult, error);
174175
}

EmailAuth/FirebaseEmailAuthUI/FUIPasswordSignInViewController_Internal.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
2222
@interface FUIPasswordSignInViewController ()
2323

2424
/** @property onDismissCallback:
25-
@brief Sets an optional custom callback for FUIPasswordSigInViewController during dismissal. If
26-
this property is set the default dismissal routine is not triggered and should be included
27-
in this block if necessary. This block is NOT set to nil after use, set to nil after using
25+
@brief Sets an optional custom callback for FUIPasswordSigInViewController during dismissal. This block is NOT set to nil after use, set to nil after using
2826
if you wish to avoid circular references.
2927
*/
3028
@property(nonatomic, strong, nullable) FIRAuthDataResultCallback onDismissCallback;

0 commit comments

Comments
 (0)