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

Changeset 4901


Ignore:
Timestamp:
Jan 10, 2008, 10:16:55 PM (12 years ago)
Author:
ebihara
Message:

#1765:SlavePNE使用時にログインできなくなっていたのを修正

Location:
OpenPNE/trunk/webapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/auth.inc

    r4899 r4901  
    1313
    1414if (   !$auth->auth()
    15     || !($u = db_member_c_member_id4pc_address_encrypted($auth->getUsername()))
     15    || (!($u = db_member_c_member_id4pc_address_encrypted($auth->getUsername()))
     16        && !($u = db_member_c_member_id4username($auth->getUsername())))
    1617    || db_member_is_login_rejected($u)) {
    1718    $auth->logout();
  • OpenPNE/trunk/webapp/modules/ktai/auth.inc

    r4899 r4901  
    2121
    2222if (   !$auth->auth()
    23     || !($u = db_member_c_member_id4ktai_address_encrypted($auth->getUsername(), true))
     23    || (!($u = db_member_c_member_id4ktai_address_encrypted($auth->getUsername(), true))
     24        && !($u = db_member_c_member_id4username($auth->getUsername())))
    2425    || db_member_is_login_rejected($u)) {
    2526    $auth->logout();
  • OpenPNE/trunk/webapp/modules/ktai/do/o_login.php

    r4899 r4901  
    5555        }
    5656
    57         $c_member_id = db_member_c_member_id4ktai_address_encrypted($auth->getUsername());
     57        if (IS_SLAVEPNE) {
     58            $c_member_id = db_member_c_member_id4username($auth->getUsername());
     59        } else {
     60            $c_member_id = db_member_c_member_id4ktai_address_encrypted($auth->getUsername());
     61        }
     62
    5863        if (!$c_member_id) {
    5964            if (IS_SLAVEPNE) {
  • OpenPNE/trunk/webapp/modules/pc/do/o_login.php

    r4899 r4901  
    4646        }
    4747
    48         $c_member_id = db_member_c_member_id4pc_address_encrypted($auth->getUsername());
     48        if (IS_SLAVEPNE) {
     49            $c_member_id = db_member_c_member_id4username($auth->getUsername());
     50        } else {
     51            $c_member_id = db_member_c_member_id4pc_address_encrypted($auth->getUsername());
     52        }
     53
    4954        if (!$c_member_id) {
    5055            if (IS_SLAVEPNE) {
Note: See TracChangeset for help on using the changeset viewer.