Skip to content

NUX: Duplicate log in bug #5042

Closed
Closed

Description

@kurzee

As seen in #5023, if we ever create a bug or a case in which a user can authenticate a WP.com account while still authenticated as another account, the previous account sticks around with a strange multi-account bug. In fact, this can be repeated with multiple accounts if a bug allows it.

Steps to reproduce the behavior

Run a branch without the fix in 5ecb470, or comment the diff out to reproduce:

  1. Authenticate as a WordPress.com account if needed.
  2. Go to the site list and hit the + button to Add a Self-Hosted Site.
  3. Upon viewing the LoginViewController you will be prompted to use your WordPress.com saved passwords. (If saved)
  4. Select a saved password.
  5. The form will auto-fill and auto-select the authentication method as a WP.com sign in.
  6. Upon signing in, you will still be authenticated as the previous account, but both account sites will shows up under your sites list.

NOTE: See additional testing below #5042 (comment)

This would need to be patched with an implementation removing any previously authenticated account. This currently happens if the user follows the usual flow of disconnecting a current account and then authenticating as a new account.

@aerych Do you think this should be patched? Or, should the current implementation remain since there is currently no intentional method for a user to authenticate twice?

Activity

  1. added this to the Pending milestone on Mar 28, 2016
  2. aerych commented on Mar 28, 2016

    @aerych
    Contributor

    I think its less a concern after 5ecb470 but it would be nice to make things a bit more bullet proof.

  3. kurzee commented on Mar 28, 2016

    @kurzee
    ContributorAuthor

    Similar issue here: #3401

  4. rachelmcr commented on Apr 1, 2016

    @rachelmcr
    Contributor

    I found a case where this is still possible:

    1. Log in to the WordPress app with a WordPress.com account
    2. Go to the site list and hit the + button to Add a Self-Hosted Site
    3. Log in with a different WordPress.com username, password, and site URL

    Result: You are logged in and the second account's sites appear in the site list (and you can manage the sites as that account) but you are also still authenticated as the previous account.

    If you go to the Me tab and disconnect from WordPress.com, it only disconnects you from the first WordPress.com account. The second account's sites are still there if you log in again.

  5. kurzee commented on Apr 1, 2016

    @kurzee
    ContributorAuthor

    @rachelmcr The fix for that one was in the 6.1 branch and not yet in develop. Are you using the develop branch or an internal build?

  6. rachelmcr commented on Apr 1, 2016

    @rachelmcr
    Contributor

    I'm using the latest 6.1.0.20160331 beta, but I can also check develop. This is different from the issue in #5023 (which is fixed in this beta) in that it involves logging in manually using the self-hosted login form (whereas the previous issue with auto-fill also auto-selected the WP.com login form).

  7. rachelmcr commented on Apr 1, 2016

    @rachelmcr
    Contributor

    Er, I misread your comment about develop. I am not using the develop branch; I'm using the 6.1.0.20160331 beta build.

  8. kurzee commented on Apr 1, 2016

    @kurzee
    ContributorAuthor

    Continuing the issue here, this requires the larger refactor alluded to in #5044

  9. kurzee commented on Apr 19, 2016

    @kurzee
    ContributorAuthor

    Issue is resolved in #5155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions