summaryrefslogtreecommitdiff
path: root/pinyweb
diff options
context:
space:
mode:
Diffstat (limited to 'pinyweb')
-rwxr-xr-xpinyweb/cgi-bin/newuser.cgi4
-rw-r--r--pinyweb/debian/control2
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.