Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

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

Open anirbanpaulcom opened this issue 1 year ago • 2 comments

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:

https://github.com/RocketChat/Rocket.Chat.ReactNative/assets/130109852/3bc70edf-3008-460c-8d3a-0557cf5cc14b

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

Additional context:

anirbanpaulcom avatar Feb 06 '24 15:02 anirbanpaulcom

Fix : #5544

anirbanpaulcom avatar Feb 06 '24 16:02 anirbanpaulcom

Hey @diegolmello Can I work on this issue including the changes you mentioned?

Himanshu-kiran avatar Mar 14 '24 10:03 Himanshu-kiran