vendredi 5 octobre 2018

Devise gem to check encrypted password with current password

In my Ruby on Rails application, we are using devise gem encryptor module to encrypt the password from login page. My user model has encrypted password and does not store password in raw form. I have password update feature for user and need to enter current password. I need to validate with the encrypted password from user model using devise encryptor module which uses bcrypt and klass . How can I achieve it

Aucun commentaire:

Enregistrer un commentaire