RocketChat / Rocket.Chat

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

Incorrect Email Validation on various pages #33354

Open smritidoneria opened 2 weeks ago

smritidoneria commented 2 weeks ago

Search before asking

Operating System

Operating System Version

MacOs

It happens on the web browser too?

Yes, it happens on the web browser too

Rocket.Chat Desktop App Version

4.1.0

Rocket.Chat Server Version

6.12.1

Describe the bug

Email Validation occur at various places.

  1. while registering , the email has incorrect validation.
  2. While exporting messages

Exporting Messages-

https://github.com/user-attachments/assets/ffc0b646-7b97-4a50-b42d-30ec1a9c359a

While registering-

https://github.com/user-attachments/assets/6a1b99c7-81e0-4123-b4ab-dd189d8d871f

How to Reproduce

While registering- Register yourself without the domain. The interface will lead to another page without showing any error.

Export message- Click on export messages Input the wrong email click send

Describe your Expected behavior

There should be proper email validation, not allowing user to login and export messages without the proper domain.

Anything else

This problem occurs everytime.

Are you willing to submit a code contribution?

smritidoneria commented 2 weeks ago

I'm willing to work on this, if this bug is accepted @jeanfbrito 🚀

Tanu1201 commented 2 hours ago

@jeanfbrito I was exploring the Rocket.chat and I noticed that this issue is an valid issue, so raised the PR for this please check this https://github.com/RocketChat/Rocket.Chat/pull/33398