diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-04 21:31:50 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-04 21:31:50 -0700 |
commit | 7d9e7b8c44c116ab4310231e7adfa7bd80543aa0 (patch) | |
tree | b44520745adb6758f77f0013ce1374a17c2f4357 /pinyweb | |
parent | 49d6d1ccee5263e854224eddb5a010bb7c8c14f5 (diff) | |
parent | 4277b3c43a3c8a491974b99ae31e64b8e3c47fb6 (diff) | |
download | piny-code-7d9e7b8c44c116ab4310231e7adfa7bd80543aa0.tar.gz piny-code-7d9e7b8c44c116ab4310231e7adfa7bd80543aa0.zip |
Merge branch 'master' of ssh://piny/srv/git/piny-code
Diffstat (limited to 'pinyweb')
-rwxr-xr-x | pinyweb/cgi-bin/newuser.cgi | 4 | ||||
-rw-r--r-- | pinyweb/debian/control | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pinyweb/cgi-bin/newuser.cgi b/pinyweb/cgi-bin/newuser.cgi index 98db83e..e4b955a 100755 --- a/pinyweb/cgi-bin/newuser.cgi +++ b/pinyweb/cgi-bin/newuser.cgi @@ -27,11 +27,11 @@ if( $q->param("n") && $q->param("a") && $q->param("p") ) { my $code; if ( $q->param("h") ) { - $pass = $cipher->decrypt( decode_base32( $pass ) ); + $pass = $cipher->decrypt( MIME::Base32::decode( $pass ) ); $code = $auth->hash( { "n" => $q->param( "n" ), "a" => $q->param( "a" ), "p" => $pass } ); } else { $code = $auth->hash( { "n" => $q->param( "n" ), "a" => $q->param( "a" ), "p" => $pass } ); - $pass = encode_base32( $cipher->encrypt( $pass ) ); + $pass = MIME::Base32::encode( $cipher->encrypt( $pass ) ); }; if ( $q->param("h") ) { diff --git a/pinyweb/debian/control b/pinyweb/debian/control index 97e5537..8e2d1b5 100644 --- a/pinyweb/debian/control +++ b/pinyweb/debian/control @@ -8,7 +8,7 @@ Standards-version: 3.9.1 Package: pinyweb Architecture: any -Depends: ${perl:Depends}, ${misc:Depends}, ${shlibs:Depends}, libjson-perl, libpiny-perl (>= 0.14), pinyadmin (>= 0.10) +Depends: ${perl:Depends}, ${misc:Depends}, ${shlibs:Depends}, libcrypt-cbc-perl, libjson-perl, libmime-base32-perl, libpiny-perl (>= 0.14), pinyadmin (>= 0.10) Description: CGIs for managing piny repositories The CGI programs for day-to-day administrative tasks in the Piny infrastructure. |