Created
February 21, 2012 14:53
-
-
Save fapestniegd/1876928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub authen_ses_key ($$$) { | |
| my ($self, $r, $cookie) = @_; | |
| my $debug = $r->dir_config("AuthCookieDebug") || 0; | |
| $r->server->log_error(".oO( Entering: authen_ses_key )Oo.")if $debug >= 5; | |
| my($user, $password) = split(/:/, $cookie); | |
| $r->server->log_error("user=$user pass=$password cookie=$cookie"); | |
| if ($user eq "programmer" && $password eq "Hero") { | |
| $user; | |
| } elsif ($user eq "some-user") { | |
| $user; | |
| } else { | |
| ""; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment