RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.57k stars 10.59k forks source link

[BUG] New user created by admin asks for verification if marked verified #24909

Open Kunalvrm555 opened 2 years ago

Kunalvrm555 commented 2 years ago

Description:

First login attempt from a new user created by admin requires verification code even if the user was marked as verified at the time of creation whereas a new user not marked as verified is not asked for a verification code.

Steps to reproduce:

  1. Go to Administration.
  2. Click on Users.
  3. Click on New to create new user.
  4. Enter required details and mark the user as Verified by clicking on the toggle switch.
  5. Click on Save and then logout from the admin account.
  6. Try logging in using the credentials of the new user just created.

Expected behavior:

A user marked as verified by the admin should be able to login directly without having to enter any verification code.

Actual behavior:

https://user-images.githubusercontent.com/67605729/159516160-b4f35a72-bf26-4a7d-8b8e-527926f842dc.mp4

Server Setup Information:

Client Setup Information

Additional context

A user not marked as verified by the admin is able to login directly without having to enter any verification code.

https://user-images.githubusercontent.com/67605729/159517243-cebbae5f-dcd3-479f-b95f-6880c7371535.mp4

aman-simplycool commented 2 years ago

I want to work on this issue can you assign this to me.