User registration validation

General Discussion about the commercial Enuuk Auction Platform
Post Reply
bamse
Posts: 220
Joined: Mon Feb 06, 2012 12:05 pm
Contact:

User registration validation

Post by bamse » Sat Jan 18, 2014 12:16 pm

It seems that the javascript validation (in global.js->validateUserForm() ) is more strict requiring certain minimum lengths of strings than the php validation (in class/User.php->__set() and class/Action/User.php->verifyUserParameters() ).

So if I turn off javascript in the browser I could register with less than the minimum requirements. Also in this case, the error messages from php validation would not show (since they require javascript).

RWAP
Site Admin
Posts: 750
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: User registration validation

Post by RWAP » Sat Jan 18, 2014 1:08 pm

Potentially, yes, but most areas of the site will not work without javascript anyway...

You are correct though - especially for user registration, to stop spammers, you are better to ensure that the global.js validation matches the PHP validation.

This is something that you should report to enuuk.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest