When I create a new record and send password reset email. The link of that gives me this error
reset password token is invalid devise rails
My model is
class Advertiser < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
after_create { |admin| admin.send_reset_password_instructions }
def password_required?
new_record? ? false : super
end
end
Basically I create new advertiser from activeadmin without giving password. Only in this scenario that issue came.Otherwise it works fine.
Link genereate is like that
http://localhost:3000/admin/password/edit?reset_password_token=fDxVmCNjKNDiUseWGLe6
BUt it gives error like that
Reset password token is invalid