Skip to content

Bug - Prevent Updating Name, Username, Email, and New Password with Empty/Whitespace Values #5543

@anirbanpaulcom

Description

@anirbanpaulcom

Description:

Attempting to update the user profile with empty or whitespace values for the "name," "username," "email," or "newPassword" fields results in unexpected behavior. The Save Changes button should be disabled when any of these fields are empty or contain only whitespace.

Environment Information:

Rocket.Chat Server Version: 6.5.0
Rocket.Chat App Version: 4.47.0
Device Name: Redmi note 5 pro
OS Version: Android

Steps to reproduce:

1.Open the user profile.
2.Modify the "name," "username," "email," or "newPassword" fields.
3.Leave the fields empty or enter only whitespace.
4.Attempt to save changes.

Expected behavior:

The Save Changes button should be disabled, and no update should occur when any of the specified fields are empty or contain only whitespace.

Actual behavior:

WhatsApp.Video.2024-02-06.at.9.12.35.PM.mp4

WhatsApp Image 2024-02-06 at 8 40 14 PM

Additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions