>
>               
> db.auth_user.insert(password=db.auth_user.password.validate(password),
>

Validators (including the password CRYPT() validator) return a tuple of 
(value, error), where error is None if validation passes. So, the above 
should be:

db.auth_user.insert(password=db.auth_user.password.validate(password)[0],

That will extract just the hashed value from the returned tuple.

Side note: you don't need all those line continuations ("\") inside the 
insert() method parentheses.

Anthony

Reply via email to