Security

last person joined: 2 days ago 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

How to limit guest name length

This thread has been viewed 5 times
  • 1.  How to limit guest name length

    Posted Mar 08, 2019 11:10 AM

    How to control length of "name" form of guest self registration page to be certian number of characters ?

    Example: guest user is allowed to enter max length of 20 characters as a name.

     



  • 2.  RE: How to limit guest name length

    MVP
    Posted Mar 12, 2019 11:17 AM

    On the Guest module, go to the form and edit the fields. Click on the "Name" field and click Edit. Go down to Form Validation Properties and select a validator as "IsRegexMatch" and in the Validator Argument field, enter:

    ^[A-Za-z]{1,20}$

     And that should allow only upper and lower case letters along with a minimum of 1 character and a maximum of 20 characters.

     

    Might want to fact-check me on the [a-Z] part and make sure it includes both uppercase and lowercase, but that should effectively do what you need. 



  • 3.  RE: How to limit guest name length

    Posted Mar 13, 2019 02:26 AM

    Thanks Michael..

    I found another solution as well, edit filed, visitor_name, and change max length to 20.