Skip to content

Commit

Permalink
FEATURE: renames forgot_password_verbose, forgot_password_strict
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Sep 11, 2014
1 parent 4210468 commit 45e8337
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/session_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def forgot_password
end

json = { result: "ok" }
if SiteSetting.forgot_password_verbose
unless SiteSetting.forgot_password_strict
json[:user_found] = user.present?
end

Expand Down
2 changes: 1 addition & 1 deletion config/locales/server.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ en:
allow_index_in_robots_txt: "Specify in robots.txt that this site is allowed to be indexed by web search engines."
email_domains_blacklist: "A list of email domains that users are not allowed to register accounts with. Example: mailinator.com trashmail.net"
email_domains_whitelist: "A list of email domains that users MUST register accounts with. WARNING: Users with email domains other than those listed will not be allowed!"
forgot_password_verbose: "Inform users of an account's existance when they use the forgot password dialog."
forgot_password_strict: "Don't inform users of an account's existance when they use the forgot password dialog."
version_checks: "Ping the Discourse Hub for version updates and show new version messages on the /admin dashboard"
new_version_emails: "Send an email to the contact_email address when a new version of Discourse is available."

Expand Down
2 changes: 1 addition & 1 deletion config/site_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ login:
email_domains_whitelist:
default: ''
type: list
forgot_password_verbose: true
forgot_password_strict: false

users:
min_username_length:
Expand Down

0 comments on commit 45e8337

Please sign in to comment.