XPressME Integration Kit

Trac

Changeset 65


Ignore:
Timestamp:
Jan 21, 2009, 5:44:04 PM (15 years ago)
Author:
toemon
Message:

live writer でパスワードを確認する際、WP側のパスワードが、xoopsパスワードをさらにhashしたものに変更されていたためログインできない状態であった。
備考、live writer登録時には一旦サイトをチェックするが、このとき、XPressMEモジュールにゲストの権限が無いとやアクセス権の関係でサイトチェックできなくなる。 #57

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/pluggable-override.php

    r23 r65  
    148148        // If the hash is still md5... 
    149149        if ( strlen($hash) <= 32 ) { 
    150                 if (( $hash == md5($password)) || ($hash == $password)) { 
     150                if (( $hash == md5($password)) || ($hash == $password)) {  // The password taken out of XOOPS is hash value. 
    151151                        $check = true; 
    152152                } else { 
     
    154154                } 
    155155 
    156                 if ( $check && $user_id ) { 
    157                         // Rehash using new hash. 
    158                         wp_set_password($password, $user_id); 
    159                         $hash = wp_hash_password($password); 
    160                 } 
    161  
     156/* A new hash is not used because it differs from the hash on the XOOPS password.  
     157 *              if ( $check && $user_id ) { 
     158 *                      // Rehash using new hash. 
     159 *                      wp_set_password($password, $user_id); 
     160 *                      $hash = wp_hash_password($password); 
     161 *              } 
     162 */ 
    162163                return apply_filters('check_password', $check, $password, $hash, $user_id); 
    163164        } 
Note: See TracChangeset for help on using the changeset viewer.