Panel
Newbie
yerbol89
+1 vote
112 views

Allowing them to use the symbols at the @#$%^&*(),.? for registration?

Allowing them to use the symbols at the @#$%^&*(),.? for registration?
My site users for register site use symbols @#$%^&*(),.?. After i share facebook or social network link dont work because user use for login symbol .. ()

Is it possible to prevent a user so that it can only be used in the login only characters:
abcdefghijklmnopqrstuvxyz0123456789
by yerbol89 asked Aug 31, 2015 in Core

1 Comment

Yes it is very possible.

The theory is this.

1. First use regex or any other means to see if the username name field contains any of the following characters @#$%^&*(),.? during registration

2. if any of such charcters are found, halt the registration and send back a message to user that such characters are reserved for system use therefore he should not enter such characters. in otherwords, he/she can use [A-Za-z][0-9]

3. If such characters are not found, just continue with registration.
The problem is that I am not very familiar with q2a functions so I cant tell you which specific code to modify.

Please log in or register to add a comment.

Please log in or register to answer this question.

1 Answer

Fighter
webmaster
0 votes

filter_handle will be useful for you. Make the process of Vanbells in this function.

image

by webmaster answered Aug 31, 2015

Please log in or register to add a comment.

...