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

Changeset 4644


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

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

File:
1 edited

Legend:

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

    r4638 r4644  
    12301230    db_update('c_member', $data, $where);
    12311231
    1232     $data = array('hashed_password_query_answer' => md5($password_query_answer));
     1232    if (empty($password_query_answer)) {
     1233        $password_query_answer = '';
     1234    } else {
     1235        $password_query_answer = md5($password_query_answer);
     1236    }
     1237    $data = array('hashed_password_query_answer' => $password_query_answer);
    12331238    $where = array('c_member_id' => intval($c_member_id));
    12341239    db_update('c_member_secure', $data, $where);
     
    18751880   
    18761881    if (($c_member['nickname'] === '')
    1877      || ($c_member['birth_year'] === '')
    1878      || ($c_member['birth_month'] === '')
    1879      || ($c_member['birth_day'] === '')
    1880      || ($c_member['c_password_query_id'] === '')
     1882     || ($c_member['birth_year'] === '0')
     1883     || ($c_member['birth_month'] === '0')
     1884     || ($c_member['birth_day'] === '0')
     1885     || ($c_member['c_password_query_id'] === '0')
    18811886     || ($c_member['secure']['hashed_password_query_answer'] === '')
    18821887    ) {
Note: See TracChangeset for help on using the changeset viewer.