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
--