Changeset 13794


Ignore:
Timestamp:
2007-01-25T13:59:55+13:00 (17 years ago)
Author:
mdewsnip
Message:

Removed the "authentication_enabled" option because it is important to know the username for various things; authentication is now always enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/gliserver.pl

    r13497 r13794  
    77
    88
    9 my $authentication_enabled = 1;
    109my $debugging_enabled = 0;
    1110
     
    5554    $gsdl_cgi->generate_error("No username specified.");
    5655    }
     56    # Remove the un argument (since this can mess up other scripts)
    5757    $gsdl_cgi->delete("un");
    5858
     
    105105    my $collection = shift(@_);
    106106
    107     # Even if we're not authenticating remove the un and pw arguments, since these can mess up other scripts
     107    # Remove the pw argument (since this can mess up other scripts)
    108108    my $user_password = $gsdl_cgi->clean_param("pw");
    109109    $gsdl_cgi->delete("pw");
    110 
    111     # Only authenticate if it is enabled
    112     return "all-collections-editor" if (!$authentication_enabled);
    113110
    114111    if ((!defined $user_password) || ($user_password =~ m/^\s*$/)) {
Note: See TracChangeset for help on using the changeset viewer.