locoboy
locoboy

Reputation: 38950

How can I use devise to send a reset password link?

I currently have an app that allows users to invite other users to their organization. How can I make it so that devise will send a reset password link to the users that have been invited?

Upvotes: 2

Views: 102

Answers (1)

iltempo
iltempo

Reputation: 16012

Add recoverable and use the send_reset_password_instructions method.

class User < ActiveRecord::Base
  devise :recoverable
  ...
end

User.find(1).send_reset_password_instructions

Upvotes: 3

Related Questions