Skip to content

Commit

Permalink
Merge pull request #1 from karks88/karks88-patch-1
Browse files Browse the repository at this point in the history
Update wp-multisite-sso.php
  • Loading branch information
karks88 authored Mar 26, 2021
2 parents d4ae271 + 030a58f commit e8605fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-multisite-sso.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static function handle_login( $username, $user ) {
}

// encrypt the sso object
$cipher = 'AES-128-ECB';
$cipher = 'AES-128-CBC';
$iv = openssl_random_pseudo_bytes( openssl_cipher_iv_length( $cipher ) );

$sso_objects = array_map( function( $sso_object ) use ( $iv, $cipher ) {
Expand Down Expand Up @@ -191,7 +191,7 @@ private static function authenticate_user_on_blog() {
$sso = base64_decode( esc_attr( $request_sso ) );

// Decrypt the SSO object.
$cipher = 'AES-128-ECB';
$cipher = 'AES-128-CBC';
$ivlen = openssl_cipher_iv_length( $cipher );
$iv = substr( $sso, 0, $ivlen );
$sha2len = 32;
Expand Down

0 comments on commit e8605fe

Please sign in to comment.