Using # in password

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Using # in password

Post by wwonderfull »

When registering in signup is there any restriction using # in password for example.... james#1738. The database does not seem accept # inside the password although I am testing it in wamp server any idea?
User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Using # in password

Post by Pablo »

For security reasons, the login forms only accepts ASCII characters.
If you want more control then you can convert the login form to a standard form and change the validation in the script.
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Using # in password

Post by wwonderfull »

Pablo wrote: Thu Mar 17, 2022 9:07 pm For security reasons, the login forms only accepts ASCII characters.
If you want more control then you can convert the login form to a standard form and change the validation in the script.

Code: Select all

}
   else
   if (!preg_match("/^[A-Za-z0-9-_!@$]{1,50}$/", $newusername))
   {
      $error_message = 'Username is not valid, please check and try again!';
   }
   else
   if (!preg_match("/^[A-Za-z0-9-_!@$]{1,50}$/", $newpassword))
   {
      $error_message = 'Password is not valid, please check and try again!';
   }
   else
   if (!preg_match("/^[A-Za-z0-9-_!@$.' &]{1,50}$/", $newfullname))
   {
      $error_message = 'Fullname is not valid, please check and try again!';
   }
would adding a "#" inside of (!preg_match("/^[A-Za-z0-9-_!@#$]{1,50}$/", $newpassword)) do the trick ? Can you please give the code example if I am incorrect.
User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Using # in password

Post by Pablo »

I'm sorry, I cannot help you with custom code.
But you are right tat this regular expressions must be modified.
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Using # in password

Post by wwonderfull »

That code up there was generated from the converted signup form. But I did some search and got a website where we can validate our password expressions https://regexr.com/ I hope others find it useful too. I like it :D
Post Reply