diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-06-07 08:43:03 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-06-07 08:43:03 +0000 |
commit | 6e1e6bcf4d47a76dedc506bfaf65a76a0720a002 (patch) | |
tree | dfca7facf5c98f3bbe85046d70afb411d3ad3f65 /lib | |
parent | 8ca9a520d993d0a1a8b7bbcd800b68bf7543b7c3 (diff) |
Removed encryption key for cookies from SVN, and added some documentation (written by apple)
git-svn-id: svn://vndb.org/vndb@23 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Util/Auth.pm | 2 | ||||
-rw-r--r-- | lib/global.pl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm index dba5ba72..2f79b512 100644 --- a/lib/VNDB/Util/Auth.pm +++ b/lib/VNDB/Util/Auth.pm @@ -21,7 +21,7 @@ $VERSION = $VNDB::VERSION; { # local data for these 2 methods only my $crl = Crypt::Lite->new(debug => 0); - my $scrt = md5_hex("73jkS39Sal2)"); # just a random string, as long as it doesn't change + my $scrt = md5_hex($VNDB::COOKEY); sub AuthCheckCookie { my $self = shift; diff --git a/lib/global.pl b/lib/global.pl index 817f8928..3af92e63 100644 --- a/lib/global.pl +++ b/lib/global.pl @@ -4,6 +4,7 @@ our @DBLOGIN = ( 'dbi:Pg:dbname=vndb', 'vndb', 'passwd' ); our @SHMOPTS = ( -key => 'VNDB', -create => 'yes', -destroy => 'no', -mode => 0666); our $DEBUG = 1; our $VERSION = '1.17'; +our $COOKEY = '73jkS39Sal2)'; # encryption key for cookies (not to worry, this one is fake) our $MULTI = [ RG => {}, |