Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ extension LoginEmailViewController: GIDSignInDelegate {

extension LoginEmailViewController: LoginSocialErrorViewControllerDelegate {
private func cleanupAfterSocialErrors() {
loginFields.username = ""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'd still want to do this from retryWithEmail... otherwise it might seem a bit weird to tap the "Try with another email" option and see that address in the text field.

dismiss(animated: true) {}
}

func retryWithEmail() {
loginFields.username = ""
cleanupAfterSocialErrors()
}
func retryWithAddress() {
Expand All @@ -491,6 +491,7 @@ extension LoginEmailViewController: LoginSocialErrorViewControllerDelegate {
cleanupAfterSocialErrors()
let storyboard = UIStoryboard(name: "Login", bundle: nil)
if let controller = storyboard.instantiateViewController(withIdentifier: "SignupViewController") as? NUXAbstractViewController {
controller.loginFields = loginFields
navigationController?.pushViewController(controller, animated: true)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ import WordPressShared

// Update special case login fields.
loginFields.meta.userIsDotCom = true
emailField.text = loginFields.emailAddress

configureLayoutForSmallScreensIfNeeded()
configureSubmitButton(animating: false)
Expand Down