Can I see you models? Are you changing the validator for 
db.auth_user.password?
Your error says:

<type 'exceptions.ValueError'> unsupported hash type |pbkdf2(1000,20,sha512)

I do not understand where | in  |pbkdf2 would come from.


On Tuesday, 18 December 2012 09:33:12 UTC-6, Wonton wrote:
>
> Hi Massimo!!
>
> I'm using version 2.2.1 (2012-10-21 16:57:04) stable. I dowloaded it last 
> week.
>
> El martes, 18 de diciembre de 2012 16:26:29 UTC+1, Massimo Di Pierro 
> escribió:
>>
>> Which web2py version? The error suggests you are using an older web2py 
>> version with newly created database of records.
>>
>> Massimo
>>
>> On Monday, 17 December 2012 14:59:02 UTC-6, Wonton wrote:
>>>
>>> Hello everyone,
>>>
>>> I'm developing a backend site with web2py. I have 2 web services, one to 
>>> register a user and a second one to login the user.
>>> This is the first one:
>>>
>>> def register(user, email, password):
>>>      db.auth_user.insert(username=user, email=email, 
>>> password=db.auth_user.password.validate(password)) 
>>>     ...
>>>      return 'OK'
>>>
>>> It's working ok and the users are created without problem.
>>>
>>> This is the second one:
>>>
>>> def login(user, password):
>>>     response = auth.login_bare(user, password)
>>>      if not response:
>>>         message = 'Error'
>>>     else:
>>>          message = 'OK'
>>>    return message
>>>
>>> With this service I have the following error:
>>> <type 'exceptions.ValueError'> unsupported hash type 
>>> |pbkdf2(1000,20,sha512)
>>>
>>> I've tried to find any solution to this problem without success.
>>>
>>> Any of you has any idea of what is happening?
>>>
>>> Thank you very much and kind regards!
>>>
>>> Wonton
>>>
>>

-- 



Reply via email to