ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 4234


Ignore:
Timestamp:
Sep 30, 2007, 11:05:59 PM (13 years ago)
Author:
ebihara
Message:

#1360:個体識別番号を必須にしない設定にして新規登録を行おうとした場合、パスワードログインができなくなっていたのを修正

Location:
OpenPNE/trunk/webapp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/db/member.php

    r4214 r4234  
    10431043//--- c_member_secure
    10441044
    1045 function db_member_insert_c_member($c_member, $c_member_secure)
     1045function db_member_insert_c_member($c_member, $c_member_secure, $is_password_encrypted = false)
    10461046{
    10471047    if ($c_member_secure['pc_address'] && !util_is_regist_mail_address($c_member_secure['pc_address'])) {
     
    10831083    $data = array(
    10841084        'c_member_id' => intval($c_member_id),
    1085         'hashed_password' => $c_member_secure['password'],
    1086         'hashed_password_query_answer' => $c_member_secure['password_query_answer'],
     1085        'hashed_password' => md5($c_member_secure['password']),
     1086        'hashed_password_query_answer' => md5($c_member_secure['password_query_answer']),
    10871087        'pc_address'     => t_encrypt($c_member_secure['pc_address']),
    10881088        'ktai_address'   => t_encrypt($c_member_secure['ktai_address']),
     
    10901090        'easy_access_id' => '',
    10911091    );
     1092
     1093    if ($is_password_encrypted) {
     1094        $data['hashed_password'] = $c_member_secure['password'];
     1095        $data['hashed_password_query_answer'] = $c_member_secure['password_query_answer'];
     1096    }
     1097
    10921098    db_insert('c_member_secure', $data);
    10931099
  • OpenPNE/trunk/webapp/modules/ktai/do/o_regist_ktai.php

    r4230 r4234  
    102102            );
    103103
    104             $u = db_member_insert_c_member($c_member, $c_member_secure);
     104            $u = db_member_insert_c_member($c_member, $c_member_secure, true);
    105105   
    106106            if (OPENPNE_USE_POINT_RANK) {
Note: See TracChangeset for help on using the changeset viewer.