XF 1.2 Username special characters

Chojo

Active member
Hi, I'm using an expression to contain username for only alpha numeric but some users are able to create their username with special characters

My expression: ^[a-zA-Z0-9_.-àöäüÖÄÜß\s]+$
Example of special characters: ¤

Dunno how I can block that? Sorry for my poor english and ty for the help.
 

Jeremy

Well-known member
If you want to allow period you need to replace it with \. which will for it to be a period within the name.
 
Top