Skip to content

Commit

Permalink
Item12162: Disable password reset if email disabled.
Browse files Browse the repository at this point in the history
Found this task during review of 1.2 tasks for release notes.
  • Loading branch information
gac410 committed Mar 15, 2015
1 parent aeeb9a8 commit 758f1d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TopicUserMappingContrib/data/System/ResetPassword.txt
Expand Up @@ -3,7 +3,7 @@
---+ %MAKETEXT{"Reset Password"}%

%IF{
"context passwords_modifyable"
"{EnableEmail} AND context passwords_modifyable"
then="$percentINCLUDE{\"%TOPIC%\" section=\"resetPassword\"}$percent"
else="%CHANGEPASSWORDDISABLEDMESSAGE%"
}%
Expand Down
6 changes: 3 additions & 3 deletions core/data/System/DefaultPreferences.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1426281043" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1426431164" format="1.1" version="1"}%
%META:TOPICPARENT{name="AdminToolsCategory"}%
---+!! <nop>%WIKITOOLNAME% Site-Level Preferences

Expand Down Expand Up @@ -201,8 +201,8 @@ Note, this feature also must be enabled on the UserRegistration page by adding

---+++ Change of Password Message

* If password management is not handled by Foswiki this message will be displayed on %SYSTEMWEB%.ChangePassword and %SYSTEMWEB%.ResetPassword. Replace this generic text with a reference to how to change or reset password within your organisation.
* Set CHANGEPASSWORDDISABLEDMESSAGE = %MAKETEXT{"Resetting and setting password is not handled by Foswiki"}%
* If password management is not handled by Foswiki, this message will be displayed on %SYSTEMWEB%.ChangePassword and %SYSTEMWEB%.ResetPassword. If email is disabled, it will also be displayed on %SYSTEMWEB%.ResetPassword. Replace this generic text with a reference to how to change or reset password within your organisation.
* Set CHANGEPASSWORDDISABLEDMESSAGE = %MAKETEXT{"Resetting and setting password is not available."}%

---+++ HTTP-<nop>EQUIV Settings

Expand Down
1 change: 1 addition & 0 deletions core/lib/Foswiki.spec
Expand Up @@ -879,6 +879,7 @@ $Foswiki::cfg{AccessibleCFG} = [
'{DefaultUrlHost}',
'{DenyDotDotInclude}',
'{DisplayTimeValues}',
'{EnableEmail}',
'{EnableHierarchicalWebs}',
'{FormTypes}',
'{HomeTopicName}',
Expand Down

0 comments on commit 758f1d3

Please sign in to comment.