summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-04 21:31:50 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-04 21:31:50 -0700
commit7d9e7b8c44c116ab4310231e7adfa7bd80543aa0 (patch)
treeb44520745adb6758f77f0013ce1374a17c2f4357 /pinyweb/cgi-bin
parent49d6d1ccee5263e854224eddb5a010bb7c8c14f5 (diff)
parent4277b3c43a3c8a491974b99ae31e64b8e3c47fb6 (diff)
downloadpiny-code-7d9e7b8c44c116ab4310231e7adfa7bd80543aa0.tar.gz
piny-code-7d9e7b8c44c116ab4310231e7adfa7bd80543aa0.zip
Merge branch 'master' of ssh://piny/srv/git/piny-code
Diffstat (limited to 'pinyweb/cgi-bin')
-rwxr-xr-xpinyweb/cgi-bin/newuser.cgi4
1 files changed, 2 insertions, 2 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") ) {