Skip to content

Commit 1b4e758

Browse files
committed
fix: password reset bug
1 parent ce5dd57 commit 1b4e758

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

app/mailers/mailings/devise.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,6 @@ def activation_instructions(record, token, _opts = {})
9797
mail(record.email, nil, "#{ I18n.t('mailings.devise.activation_instructions.welcome') } | #{ I18n.t('mailings.devise.confirmation_instructions.activate_account') }", html, text)
9898
end
9999

100-
private
101-
102-
def whatsapp_promo_link
103-
if I18n.locale == :en
104-
"https://svsticky.nl/promochannel"
105-
else
106-
# Fallback is NL
107-
"https://svsticky.nl/promokanaal"
108-
end
109-
end
110-
111100
def reset_password_instructions(record, token, _opts = {})
112101
Rails.logger.debug(edit_password_url(record, reset_password_token: token)) if Rails.env.development?
113102

@@ -131,6 +120,17 @@ def reset_password_instructions(record, token, _opts = {})
131120
return mail(record.email, nil, "#{ I18n.t('mailings.devise.reset_passwords_instructions.reset_password') } Sticky", html, text)
132121
end
133122

123+
private
124+
125+
def whatsapp_promo_link
126+
if I18n.locale == :en
127+
"https://svsticky.nl/promochannel"
128+
else
129+
# Fallback is NL
130+
"https://svsticky.nl/promokanaal"
131+
end
132+
end
133+
134134
def forced_confirm_email(record, current_user, _opts = {})
135135
if Rails.env.development?
136136
Rails.logger.debug { "#{ record.user.unconfirmed_email } #{ I18n.t('mailings.removed') }" }

0 commit comments

Comments
 (0)