mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 01:34:39 +08:00
FEATURE: forgot_password_strict setting also prevents reporting that an email address is taken during signup
This commit is contained in:
@ -83,6 +83,15 @@ class UserNotifications < ActionMailer::Base
|
||||
)
|
||||
end
|
||||
|
||||
def account_exists(user, opts = {})
|
||||
build_email(
|
||||
user.email,
|
||||
template: 'user_notifications.account_exists',
|
||||
locale: user_locale(user),
|
||||
email: user.email
|
||||
)
|
||||
end
|
||||
|
||||
def short_date(dt)
|
||||
if dt.year == Time.now.year
|
||||
I18n.l(dt, format: :short_no_year)
|
||||
|
Reference in New Issue
Block a user