JUser bind when a new user ... well and old

Showing 1-3 of 3 messages
JUser bind when a new user ... well and old fanno 12/7/12 11:25 AM
Hi all

https://github.com/joomla/joomla-platform/blob/staging/libraries/joomla/user/user.php#L551

i think there is an issue here

when creating a new user, both:
$username = $this->get('username');
and
$password = $this->get('password');
will always return ''

this means the checks
if (strlen($username) > 150)
{
$username = substr($username, 0, 150);
$this->set('username', $username);
}
and
if (strlen($password) > 100)
{
$password = substr($password, 0, 100);
$this->set('password', $password);
}
are never in effect ...

because the values are only in $array eg $array['username'] or $array['password']

should the checks in question not be moved down below setProperties ??


so that the check is preformed on BOTH NEW and EXISTING users ???? I mean why not have a check when it is not all the way ?

Maybe i am missing something .. ?

-Thanks
Re: JUser bind when a new user ... well and old Kevin 12/8/12 1:51 PM
Re: JUser bind when a new user ... well and old fanno 12/8/12 1:55 PM
i don't think so.