-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User needs to login again in the in-app webview when creating their first site #24205
Comments
Thanks for reporting! 👍 |
The root cause is new accounts created via web login are not activated (they need to click a link in their email to activate the account). The endpoint to authenticate web view does not respond with auth cookies for unactivated accounts. |
I believe the only scenario that would lead to this issue at the moment is straight after the user creates a new account within the iOS app. After creating an account from the web login, they'll sign into the app. They would see the "no sites view", with option to "Create WordPress.com site", which leads to this issue. At the moment, the "Create WordPress.com site" flow is also broken because users won't be able to sign in to the in-app web view. The login page web view use an email verification link to sign in by default. There is an option to "User username and password instead". However, that option does not show the username & password form, which could be a bug in Calypso. The user would stuck using the email verification link to log in. Since email link can't authenticate the in-app web view (there is a related issue #24171), user won't be able to sign in at all. We could fix the endpoint by ignoring the fact that the account is not activated and returning auth cookies. But that is probably against the general policy of trying to get new accounts' email verified as soon as possible. I tried to look through the backend codebase but couldn't find the place for this kind of change. In the spirit of nudging customers to verify their email, we can show the "Verify Your Email" view on the newly created account. Since the "Create WordPress.com site" flow is broken, we can disable the button, which echos the description in "Verify Your Email": "Verify your email to [...] access more features". ![]() |
This issue appears to only happen to newly signed-up users.
Prerequisite
From my testing, this issue only happens to new accounts created via the app's web login.
Steps to reproduce
Expected result
The app shows a "Choose a plan" screen in a web view, which is automatically authenticated with the current user.
Actual result
The web view shows a login page.
The text was updated successfully, but these errors were encountered: