RocketChat / RocketChat/Rocket.Chat
Verification code not generating in First Attempt
Nobody has claimed this yet.
- 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:
- Goto login page
- Click on forgot password
- You will not get Topt in first attempt
- 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:

Client Setup Information:
Operating System: Ubuntu 22.0.4
Relevant logs:
first when we click on forgot password

server logs:
code not generated

then we click on resend then it generates code

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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