I am using devise as authentication in my application.
I need to implement feature in devise. After first login user should ask to change password.
I tried through model
after_create :update_pass_change
def update_pass_change
self.pass_change = true
self.save
end
Aucun commentaire:
Enregistrer un commentaire