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

Changeset 9803


Ignore:
Timestamp:
Dec 31, 2008, 5:34:48 AM (12 years ago)
Author:
ebihara
Message:

#3241:changed opAuthPCAddressPlugin to force an authentication mode to register

Location:
OpenPNE3/plugins/opAuthPCAddressPlugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opAuthPCAddressPlugin/trunk/apps/pc_frontend/modules/pcAddress/actions/actions.class.php

    r9588 r9803  
    3434    $this->forward404Unless($memberConfig, 'This URL is invalid.');
    3535
     36    opActivateBehavior::disable();
     37    $authMode = $memberConfig->getMember()->getConfig('register_auth_mode');
     38    opActivateBehavior::enable();
     39    $this->forward404Unless($authMode === $request->getParameter('authMode') && $authMode === $this->getUser()->getCurrentAuthMode());
     40
    3641    $this->getUser()->setMemberId($memberConfig->getMemberId());
    3742    $this->getUser()->setIsSNSRegisterBegin(true);
  • OpenPNE3/plugins/opAuthPCAddressPlugin/trunk/lib/user/opAuthAdapterPCAddress.class.php

    r9705 r9803  
    4949    opActivateBehavior::enable();
    5050
    51     if (!$data) {
     51    if (!$data || !$data->getName() || !$data->getProfiles()) {
    5252      return false;
    5353    }
    5454
    55     if ($data->getIsActive()) {
     55    if ($data->getIsActive())
     56    {
    5657      return false;
    57     } else {
     58    }
     59    else
     60    {
    5861      return true;
    5962    }
Note: See TracChangeset for help on using the changeset viewer.