Changing user permissions invalidates password

Open
#18,493 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Reproduce the issue using two browser sessions and the Rocket.Chat 3.5.0 setup described: change a test user's permissions from admin to guest, then try to log in again. Trace the authentication and permission-change handling to determine why the account is treated as missing or has an incorrect password. Done means the user can log in after the permission change and the reported error no longer occurs.

Written by the indexing model from the issue text.

Description

Description:

After changing user permissions on a user it's no longer possible to login with this account.

Steps to reproduce:
  1. Create 'test' user with 'admin' permissions
  2. Login with 'test' user in another browser
  3. Change permissions of 'test' user from 'admin' to 'guest' with original admin account
    -> 'test' user in second browser gets logged out
  4. Try to login again with 'test' user
Expected behavior:

You log in with the test user

Actual behavior:

"User not found or incorrect password" error message

Server Setup Information:
  • Version of Rocket.Chat Server: 3.5.0
  • Operating System: linux
  • Deployment Method: docker
  • Number of Running Instances: 1
Client Setup Information
  • Desktop App or Browser Version: Chrome 84
  • Operating System: Arch Linux
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/Rocket.Chat

All issues in RocketChat/Rocket.Chat

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.