RocketChat / RocketChat/Rocket.Chat

Registration form shows generic error instead of specific password requirement message

Open
#38,891 5 comments 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:

During registration on cloud.rocket.chat, when
user enters a password shorter than 14 characters,
a generic "unknown error" is shown instead of
a specific password requirement message.

This is confusing for new users who don't know
what went wrong.
Image

Steps to reproduce:
  1. Go to https://cloud.rocket.chat/register
  2. Fill the details and type password smaller than 14 length and click register
  3. now u got some unknown errors .
Image
Expected behavior:

A clear, specific error message should be shown
to the user like:
"Password must be at least 14 characters long"

Instead of generic "An unknown error occurred"

Actual behavior:
  1. it should show us the actual error like we are getting in the console and the main website.
Image
Server Setup Information:
  • Version of Rocket.Chat Server: cloud.rocket.chat (latest)
  • License Type: Cloud (Free Trial)
  • Number of Users: 1
  • Operating System: Linux (cloud hosted)
  • Deployment Method: cloud
  • Number of Running Instances: N/A
  • DB Replicaset Oplog: N/A
  • NodeJS Version: N/A
  • MongoDB Version: N/A
Client Setup Information
  • Browser: Brave (latest)
  • Operating System: Linux Mint
Additional context
Relevant logs:
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 by reproducing the issue at https://cloud.rocket.chat/register with a password shorter than 14 characters, then compare the registration flow's displayed error with the browser console and the main website behavior shown in the report. Done means the form displays a specific password-length message instead of “An unknown error occurred,” with the relevant registration tests updated or added.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.