! NEED JOB REBOOT Move remind activation logic to user
This commit is contained in:
parent
dc816472e9
commit
e3e6bc7689
6 changed files with 16 additions and 17 deletions
|
@ -56,6 +56,11 @@ class User < ApplicationRecord
|
|||
reset_password_token
|
||||
end
|
||||
|
||||
def remind_invitation!
|
||||
reset_password_token = set_reset_password_token
|
||||
|
||||
AdministrateurMailer.activate_before_expiration(self, reset_password_token).deliver_later
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue