mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
use set_reset_password_token
This commit is contained in:
1 parent
7a7d3c6ee3
commit
5934bdec55
1 file changed
+2
-2
@@ -3,7 +3,7 @@
|
||||
class DeviseMailerPreview < ActionMailer::Preview
|
||||
def reset_password_instructions
|
||||
user = User.first
|
||||
user.send_reset_password_instructions
|
||||
Devise::Mailer.reset_password_instructions(user, user.reset_password_token)
|
||||
token = user.send(:set_reset_password_token)
|
||||
Devise::Mailer.reset_password_instructions(user, token)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user