Changeset 8607


Ignore:
Timestamp:
08/19/10 23:28:26 (3 years ago)
Author:
CrawfordCurrie
Message:

Item9508: control display of extra password confirmation field; not required where the password is only used to verify an existing user for user profile data capture

Location:
trunk/core/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki.spec

    r8489 r8607  
    472472# a link sent in an email to the user's registered email address 
    473473$Foswiki::cfg{Register}{NeedVerification} = $FALSE; 
     474 
     475# **BOOLEAN EXPERT** 
     476# Controls whether the user password has to be entered twice on the 
     477# registration page or not. The default is to require confirmation. If 
     478# true, the same password must be provided in the Twk1Password and 
     479# Twk1Confirm inputs. 
     480$Foswiki::cfg{Register}{RequirePasswordConfirmation} = $TRUE; 
    474481 
    475482# **BOOLEAN EXPERT** 
     
    550557# a filter in because while the bulk of configuration items are quite innocent, 
    551558# it's better to be a bit paranoid. 
    552 $Foswiki::cfg{AccessibleCFG} = [ qw( {ScriptSuffix} {LoginManager} {AuthScripts} {LoginNameFilterIn} {AdminUserLogin} {AdminUserWikiName} {SuperAdminGroup} {UsersTopicName} {AuthRealm} {MinPasswordLength} {Register}{AllowLoginName} {Register}{EnableNewUserRegistration} {Register}{NeedVerification} {Register}{RegistrationAgentWikiName} {AllowInlineScript} {DenyDotDotInclude} {UploadFilter} {NameFilter} {AccessibleCFG} {AntiSpam}{EmailPadding} {AntiSpam}{HideUserDetails} {AntiSpam}{RobotsAreWelcome} {Stats}{TopViews} {Stats}{TopContrib} {Stats}{TopicName} {UserInterfaceInternationalisation} {UseLocale} {Site}{Locale} {Site}{CharSet} {DisplayTimeValues} {DefaultDateFormat} {Site}{LocaleRegexes} {UpperNational} {LowerNational} {PluralToSingular} {EnableHierarchicalWebs} {WebMasterEmail} {WebMasterName} {NotifyTopicName} {SystemWebName} {TrashWebName} {SitePrefsTopicName} {LocalSitePreferences} {HomeTopicName} {WebPrefsTopicName} {UsersWebName} {TemplatePath} {LinkProtocolPattern} {NumberOfRevisions} {MaxRevisionsInADiff} {ReplaceIfEditedAgainWithin} {LeaseLength} {LeaseLengthLessForceful} {Plugins}{WebSearchPath} {PluginsOrder} {Cache}{Enabled} {Validation}{Method} ) ]; 
     559$Foswiki::cfg{AccessibleCFG} = [ '{ScriptSuffix}', '{LoginManager}', '{AuthScripts}', '{LoginNameFilterIn}', '{AdminUserLogin}', '{AdminUserWikiName}', '{SuperAdminGroup}', '{UsersTopicName}', '{AuthRealm}', '{MinPasswordLength}', '{Register}{AllowLoginName}', '{Register}{EnableNewUserRegistration}', '{Register}{NeedVerification}', '{Register}{RegistrationAgentWikiName}', '{AllowInlineScript}', '{DenyDotDotInclude}', '{UploadFilter}', '{NameFilter}', '{AccessibleCFG}', '{AntiSpam}{EmailPadding}', '{AntiSpam}{HideUserDetails}', '{AntiSpam}{RobotsAreWelcome}', '{Stats}{TopViews}', '{Stats}{TopContrib}', '{Stats}{TopicName}', '{UserInterfaceInternationalisation}', '{UseLocale}', '{Site}{Locale}', '{Site}{CharSet}', '{DisplayTimeValues}', '{DefaultDateFormat}', '{Site}{LocaleRegexes}', '{UpperNational}', '{LowerNational}', '{PluralToSingular}', '{EnableHierarchicalWebs}', '{WebMasterEmail}', '{WebMasterName}', '{NotifyTopicName}', '{SystemWebName}', '{TrashWebName}', '{SitePrefsTopicName}', '{LocalSitePreferences}', '{HomeTopicName}', '{WebPrefsTopicName}', '{UsersWebName}', '{TemplatePath}', '{LinkProtocolPattern}', '{NumberOfRevisions}', '{MaxRevisionsInADiff}', '{ReplaceIfEditedAgainWithin}', '{LeaseLength}', '{LeaseLengthLessForceful}', '{Plugins}{WebSearchPath}', '{PluginsOrder}', '{Cache}{Enabled}', '{Validation}{Method}', '{Register}{RequirePasswordConfirmation}' ]; 
    553560 
    554561# **BOOLEAN** 
  • trunk/core/lib/Foswiki/UI/Register.pm

    r8448 r8607  
    13281328 
    13291329        # check if passwords are identical 
    1330         if ( $data->{Password} ne $data->{Confirm} ) { 
     1330        if ( $Foswiki::cfg{Register}{RequirePasswordConfirmation} 
     1331               && $data->{Password} ne $data->{Confirm} ) { 
    13311332            throw Foswiki::OopsException( 
    13321333                'attention', 
Note: See TracChangeset for help on using the changeset viewer.