In TG 1, I was using the following code to encrypt the user given
password
identity.encrypt_password(data['pwd'])
In TG2, need help to use like that.
Regards,
Ranjan
The setter method in the default auth.py model file already does that
for you automatically if you store a user password, and you can modify
the encryption method there as you like.
-- Christoph
You can use the User.validate_password() method for this purpose. Have a
look at the User class in the file model/auth.py.
-- Christoph