devise-recoverable

Overriding devise recoverable

旧街凉风 提交于 2020-02-25 23:08:50
问题 As my reputation is lower than 50, so Im not able to comment below the accepted answer in this post In Rails Devise gem how to modify the send_reset_password_instructions method? for more information. I want to customize recoverable.rb in devise. I made a copy of it in my folder with path lib/devise/models/recoverable.rb . The problem is when request to send reset password instruction , I got error undefined method activerecord51? for Devise:Module . How do i solve this? It seems my

redirect_url is missing in email instructions sent to the user for password reset

戏子无情 提交于 2020-01-15 23:57:10
问题 I am trying to build api urls for password reset via. devise_token_auth gem. As per the usage mentioned here, the POST request for /api/v1/auth/password needs params email and redirect_url . The user matching the email param will be sent instructions on how to reset their password. redirect_url is the url to which the user will be redirected after visiting the link contained in the email. However, I am getting the following URL in the email for password reset, in which the param redirect_url

Overriding devise recoverable

倖福魔咒の 提交于 2019-12-02 08:20:38
As my reputation is lower than 50, so Im not able to comment below the accepted answer in this post In Rails Devise gem how to modify the send_reset_password_instructions method? for more information. I want to customize recoverable.rb in devise. I made a copy of it in my folder with path lib/devise/models/recoverable.rb . The problem is when request to send reset password instruction , I got error undefined method activerecord51? for Devise:Module . How do i solve this? It seems my recoverable is not in Devise module. I tried a bit by making a copy of devise.rb in lib/ folder. But it doesn't