X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FCGI%2FEx%2FAuth.pm;h=d7056e21dce85be27103c6c9b3f07f10530f3f30;hb=aa030874456c91d688e6c9b25e82d2bf9575ea6f;hp=fe9f776e125cb70732cdbeaf92c8609f33ed5816;hpb=8abbacc82b52f460bef67c1923ae98873a95e123;p=chaz%2Fp5-CGI-Ex diff --git a/lib/CGI/Ex/Auth.pm b/lib/CGI/Ex/Auth.pm index fe9f776..d7056e2 100644 --- a/lib/CGI/Ex/Auth.pm +++ b/lib/CGI/Ex/Auth.pm @@ -18,7 +18,7 @@ use MIME::Base64 qw(encode_base64 decode_base64); use Digest::MD5 qw(md5_hex); use CGI::Ex; -$VERSION = '2.08'; +$VERSION = '2.14'; ###----------------------------------------------------------------### @@ -484,7 +484,8 @@ sub generate_token { if ( (defined($data->{'use_plaintext'}) ? $data->{'use_plaintext'} : $self->use_plaintext) # ->use_plaintext is true if ->use_crypt is || (defined($data->{'use_crypt'}) && $data->{'use_crypt'}) || (defined($data->{'type'}) && $data->{'type'} eq 'crypt')) { - $token = $data->{'user'} .'/'. $data->{'real_pass'}; + my $pass = defined($data->{'test_pass'}) ? $data->{'test_pass'} : $data->{'real_pass'}; + $token = $data->{'user'} .'/'. $pass; ### all other types go to cram - secure_hash_cram, cram, plaintext and md5 } else {