By: Praveen Srinivasan user 13 Mar 2021 at 4:43 a.m. CST

6 Responses
Praveen Srinivasan gravatar
Hi Team, I am planning to implement attribute validation. I have added the below regEx in email field. ``` ^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ``` Along with above regex pattern, I have added minumum length as 5. But no validation is happening on the page. When I login as user and I try to update my profile with empty email value, it is still updating. Did I miss anything? Or please guide me what do I need to do?

By Mohit Mali staff 15 Mar 2021 at 7:02 a.m. CDT

Mohit Mali gravatar
Hi , I confirmed its bug , i have created a [issue](https://github.com/GluuFederation/oxTrust/issues/2054) for this problem. thanks and regards Mohit Mali

By Praveen Srinivasan user 15 Mar 2021 at 9:41 p.m. CDT

Praveen Srinivasan gravatar
Hi Team, Not only email attribute. None of the attribute validation is working.

By Mohit Mali staff 16 Mar 2021 at 8:06 a.m. CDT

Mohit Mali gravatar
Hi Pravenn, Its not seems like bug , attribute can be removed by updating the blank values from user profile when you login next time you won't see those attribute values. While we create user from admin or via registration validation works fine. I will discuss this with developer. Thanks and Regards Mohit Mali

By Praveen Srinivasan user 16 Mar 2021 at 10:47 a.m. CDT

Praveen Srinivasan gravatar
Hi @Mohit.Mali, Yeah, but I want my users not to update empty values. So added validation for the users. In this case, if my user tries to update their profile by empty value, the regEx field validation should be raised right? Also I have added both min and max length validation as well. But nothing is working.

By Mohit Mali staff 17 Mar 2021 at 6:44 a.m. CDT

Mohit Mali gravatar
hi Praveen Srinivasan, Thank you for bring out this issue, I have updated the ticket for this problem. Thanks and Regards Mohit Mali

By Praveen Srinivasan user 24 Mar 2022 at 9:34 a.m. CDT

Praveen Srinivasan gravatar
Hi Mohit, After upgrading GLUU 4.3.1 also facing the issue. The issue is persist.