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

Changeset 4645


Ignore:
Timestamp:
Nov 28, 2007, 7:31:03 PM (15 years ago)
Author:
ebihara
Message:

#1544:SlavePNEで必須プロフィール項目が空でもログインできてしまう場合があったのを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.8.x/webapp/lib/db/member.php

    r4643 r4645  
    11121112    db_update('c_member', $data, $where);
    11131113
    1114     $data = array('hashed_password_query_answer' => md5($password_query_answer));
     1114    if (empty($password_query_answer)) {
     1115        $password_query_answer = '';
     1116    } else {
     1117        $password_query_answer = md5($password_query_answer);
     1118    }
     1119    $data = array('hashed_password_query_answer' => $password_query_answer);
    11151120    $where = array('c_member_id' => intval($c_member_id));
    11161121    db_update('c_member_secure', $data, $where);
     
    16411646    $c_member = db_member_c_member4c_member_id($c_member_id, true);
    16421647   
    1643     if (($c_member['nickname']==="")
    1644     ||($c_member['birth_year']==="")
    1645     ||($c_member['birth_month']==="")
    1646     ||($c_member['birth_day']==="")
    1647     ||($c_member['c_password_query_id']==="")
    1648     ||($c_member['secure']['hashed_password_query_answer']==="")
     1648    if (($c_member['nickname'] === '')
     1649     || ($c_member['birth_year'] === '0')
     1650     || ($c_member['birth_month'] === '0')
     1651     || ($c_member['birth_day'] === '0')
     1652     || ($c_member['c_password_query_id'] === '0')
     1653     || ($c_member['secure']['hashed_password_query_answer'] === '')
    16491654    ) {
    16501655        return 1;
Note: See TracChangeset for help on using the changeset viewer.