Skip to content

Session not revoked when user password changes using Parse Dashboard #3289

@anashalb

Description

@anashalb

Session is not being revoked when the user's password is changed from Parse Dashboard.

Code Ref
I noticed that the condition being checked is: if (this.query && !this.auth.isMaster), which means only non-Master authentication would allow sessions to be revoked. What about when master authentication is changing the user's password (e.g. Parse Dashboard)

Steps to reproduce

  1. Create a user in dashboard.
  2. Login the user using a rest call, which generates a session for the user.
  3. Go to dashboard and change the user's password.
  4. Observe that the Session for that user is not revoked.

Expected Results

According to the Parse Server defaults, the session is supposed to be revoked.

Actual Outcome

The session is not being revoked

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.2.24
    • Operating System: MacOS
    • Hardware:
    • Localhost or remote server? Localhost
  • Database

    • MongoDB version: v3.2.1
    • Storage engine: WiredTiger
    • Localhost or remote server? Localhost

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions