-
Notifications
You must be signed in to change notification settings - Fork 11
Jetpack Signup Flow pushes 3 buttons instead of present #234
Conversation
| func showWPComLogin(loginFields: LoginFields) { | ||
| self.loginFields = loginFields | ||
| performSegue(withIdentifier: .showWPComLogin, sender: self) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should say // no-op? Because in this context: coming from Jetpack Remote Install > Sign up > Continue with Apple, it would never call the showWPComLogin() method...right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do believe showWPComLogin is needed. It's nothing to do with Jetpack at this point, it's all about the SIWA flow.
It pertains to this logic in AppleAuthenticator:
guard !existingNonSocialAccount else {
if existing2faAccount {
self?.show2FA()
return
}
self?.updateLoginEmail(wpcomUsername)
self?.logInInstead()
return
}
Basically, what happens here is if an Apple ID is used where the email has already been used on a WP account, the flow will re-direct to WP login.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohhh. Nice!
ScoutHarris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with wordpress-mobile/WordPress-iOS#13827.
|
Thanks @ScoutHarris ! |
Fixes #233
This PR fixes the black screen bug.
PR to test on WPiOS: wordpress-mobile/WordPress-iOS#13827
Summary
After the Jetpack install flow, the user is asked to sign in again. The LoginEmailViewController is presented, and there text and a link below the email field that says, "Don't have an account? Sign up"
Tapping the "Sign up" link pushes the 3 button view instead of presenting the 3 button view. Pushing the nav creates the black screen (seen in Figure 2 below).
Steps to Reproduce
Expected: the 3 button view appears as an overlay to the email login screen. (See Figure 3)
Actual: the 3 button view is pushed and the background is black.
Figure 1

Figure 2

Figure 3
