Maxim, please have a look at the "updatePassword" method at the
"Users" class. There is a password length check:

if (pass == null || pass.length() < userPassMinimumLength) {
        throw new RuntimeException("Password of invalid length is provided");
}

Is this code realy needed? The password length is checked on the client side.

2013/1/21 Artyom Horuzhenko <[email protected]>:
> But when I use "setUserObjectAndGenerateRoomHashByUrl" instead of
> "setUserObjectAndGenerateRoomHash" all works fine.
>
> 2013/1/20 Artyom Horuzhenko <[email protected]>:
>> Of cause, but it trys to create a new user with empty password
>>
>> 2013/1/20 Maxim Solodovnik <[email protected]>:
>>> This method can not be used for login
>>> On Jan 20, 2013 10:23 PM, "Artyom Horuzhenko" <[email protected]> wrote:
>>>
>>>> Hello everybody.
>>>> I have a question. UserService has a method
>>>> "setUserObjectAndGenerateRoomHash" which doesn't contain password
>>>> attribute, but when I call it I get exception about missing password
>>>> length. How should I use this method with non-zero
>>>> user.pass.minimum.length or are there other way to get a hash?
>>>>

Reply via email to