Skip to content

Commit

Permalink
Merge pull request #1 from voceconnect/fix_decrypt
Browse files Browse the repository at this point in the history
fix decrypt
  • Loading branch information
Sean McCafferty committed Jan 15, 2015
2 parents 4a36ecf + 1090613 commit 5ae64db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-multisite-sso.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private static function authenticate_user_on_blog() {

// decrypt the sso object
$iv = mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB ), MCRYPT_RAND );
$sso = mcrypt_decrypt( MCRYPT_RIJNDAEL_128, substr( AUTH_SALT, 0, 32 ), $sso, MCRYPT_MODE_ECB, $iv );
$sso = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_128, substr( AUTH_SALT, 0, 32 ), $sso, MCRYPT_MODE_ECB, $iv ), "\0");

$sso_object = json_decode( $sso );

Expand Down

0 comments on commit 5ae64db

Please sign in to comment.