Ignore:
Timestamp:
01/23/12 19:00:19 (4 months ago)
Author:
CrawfordCurrie
Message:

Item11458: simplify and streamline handling of password file; it now must exist for Foswiki to run, and will be created by =configure= if not. This lets us do enhanced checking in =configure= while reducing the runtime burden.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/test/unit/FoswikiFnTestCase.pm

    r13752 r13796  
    6666    $Foswiki::cfg{RCS}{AutoAttachPubFiles}  = 0; 
    6767    $Foswiki::cfg{Register}{AllowLoginName} = 1; 
    68     $Foswiki::cfg{Htpasswd}{FileName}    = "$Foswiki::cfg{WorkingDir}/htpasswd"; 
    69     $Foswiki::cfg{PasswordManager}       = 'Foswiki::Users::HtPasswdUser'; 
     68    $Foswiki::cfg{Htpasswd}{FileName} = "$Foswiki::cfg{WorkingDir}/htpasswd"; 
     69    unless (-e $Foswiki::cfg{Htpasswd}{FileName} ) { 
     70        my $fh; 
     71        open($fh, ">", $Foswiki::cfg{Htpasswd}{FileName}) || die $!; 
     72        close($fh) || die $!; 
     73    } 
     74    $Foswiki::cfg{PasswordManager}    = 'Foswiki::Users::HtPasswdUser'; 
    7075    $Foswiki::cfg{Htpasswd}{GlobalCache} = 0; 
    71     $Foswiki::cfg{UserMappingManager}    = 'Foswiki::Users::TopicUserMapping'; 
    72     $Foswiki::cfg{LoginManager} = 'Foswiki::LoginManager::TemplateLogin'; 
     76    $Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::TopicUserMapping'; 
     77    $Foswiki::cfg{LoginManager}       = 'Foswiki::LoginManager::TemplateLogin'; 
    7378    $Foswiki::cfg{Register}{EnableNewUserRegistration} = 1; 
    7479    $Foswiki::cfg{RenderLoggedInButUnknownUsers} = 0; 
Note: See TracChangeset for help on using the changeset viewer.