RocketChat / RocketChat/Rocket.Chat

Verification code not generating in First Attempt

Open
#27,907 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Whenever we need Totp for verification its not generating in first attempt
when we click on resend then it generates in second attempt.

Steps to reproduce:

  1. Goto login page
  2. Click on forgot password
  3. You will not get Topt in first attempt
  4. Click on resend then you get Topt

Expected behaviour:

Verification code should generate in first attempt

Actual behaviour:

Verification code generating in second attempt(when we click on resend)

Server Setup Information:

image

Client Setup Information:

Operating System: Ubuntu 22.0.4

Relevant logs:

first when we click on forgot password

image

server logs:

code not generated

image

then we click on resend then it generates code

image

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.

Research direction

Start at the login page's Forgot Password flow and compare the first verification-code request with the Resend request, using the supplied server logs and screenshots. Reproduce the issue on the stated Ubuntu setup and trace which request fails to generate the TOTP. Done means the code is generated on the first attempt, with the existing resend behavior still working.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.