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/cgi-bin | |
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/cgi-bin')
-rwxr-xr-x | pinyweb/cgi-bin/newuser.cgi | 4 |
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") ) { |