Username condition to register and few optimisation

Eric F. Posted in General Discussion 9 years ago

Hi,

I don't know if when a new user register the username condition is only on OssnUser.php line 193 v2.1

        if (preg_match("/^[a-zA-Z0-9]+$/", $this->username) && strlen($this->username) > 4)

But may be it'll be better on the error message line 152 in ossn.en.php
to get the needed condition.
I've a friend who try to register and put is first name as username but he get only 3 letters :).

Also passing the png inside theme/images with PngOptimizer goes from 1.21 Mo to 338 ko.

I try also to minify *.js in vendors/jquery and win some more ko.

Thanks - Eric

Replies