mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: invited users get clearer messaging when setting a password for the first time
This commit is contained in:
@@ -25,7 +25,9 @@ class UserNotifications < ActionMailer::Base
|
||||
end
|
||||
|
||||
def forgot_password(user, opts={})
|
||||
build_email(user.email, template: "user_notifications.forgot_password", email_token: opts[:email_token])
|
||||
build_email( user.email,
|
||||
template: user.has_password? ? "user_notifications.forgot_password" : "user_notifications.set_password",
|
||||
email_token: opts[:email_token])
|
||||
end
|
||||
|
||||
def digest(user, opts={})
|
||||
|
||||
Reference in New Issue
Block a user