Jump to content

prevent register with none English letter


nimafire

Recommended Posts

hey

how can we prevent customer from registering who register with local language character

only allow English character 

this doesnt work now :

pattern="[a-zA-Z ]+" oninvalid="this.setCustomValidity('fill form in english')" oninput="setCustomValidity('')" {if $loggedinreadonly="readonly"{/if} autofocus

Link to comment
Share on other sites

On 12/01/2020 at 14:20, nimafire said:

how can we prevent customer from registering who register with local language character

have you unticked the "Allow IDN Domains" in setup -> general settings -> domains ?

https://docs.whmcs.com/Domains_Tab#Allow_IDN_Domains

Quote

Ticking this option allows domains containing any character to be used. When unticked WHMCS will only allow clients to use a-z and 0-9 in domains.

Link to comment
Share on other sites

IMO the best approach is use transliteration. This way customers can freely register using any alphabet and transliteration will convert them to latin charachers like follows:

  • 川島 永嗣 becomes Eiji Kawashima
  • Mandžukić becomes Mandzukic
  • 颜骏凌 becomes Yan Junling

You should transliterate on ClientAdd, ClientEdit, ContactAdd and ContactEdit.

 

Edited by Kian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated