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

Changeset 10120


Ignore:
Timestamp:
Jan 14, 2009, 12:08:06 AM (11 years ago)
Author:
ebihara
Message:

#3313:applied r10119

Location:
OpenPNE3/plugins/opAuthMailAddressPlugin/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opAuthMailAddressPlugin/trunk/apps/mobile_frontend/modules/opAuthMailAddress/actions/actions.class.php

    r10044 r10120  
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    1717 */
    18 class opAuthMailAddressActions extends sfActions
     18class opAuthMailAddressActions extends opAuthAction
    1919{
    2020  public function executeRequestRegisterURL($request)
     
    6161    $this->redirect('member/registerInput');
    6262  }
    63 
    64   public function executeRegisterEnd($request)
    65   {
    66     $member = $this->getUser()->getMember();
    67     $member->setIsActive(true);
    68     $member->save();
    69 
    70     $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('mobile_address_token', $member->getId());
    71     $memberConfig->delete();
    72 
    73     $this->getUser()->setIsSNSMember(true);
    74     $this->redirect('member/home');
    75   }
    7663}
  • OpenPNE3/plugins/opAuthMailAddressPlugin/trunk/apps/pc_frontend/modules/opAuthMailAddress/actions/actions.class.php

    r10044 r10120  
    1313 *
    1414 * @package    OpenPNE
    15  * @subpackage pcAddress
     15 * @subpackage action
    1616 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    17  * @version    SVN: $Id: actions.class.php 9301 2008-05-27 01:08:46Z dwhittle $
    1817 */
    19 class opAuthMailAddressActions extends sfActions
     18class opAuthMailAddressActions extends opAuthAction
    2019{
    2120  public function executeRequestRegisterURL($request)
     
    6261    $this->redirect('member/registerInput');
    6362  }
    64 
    65   public function executeRegisterEnd($request)
    66   {
    67     $member = $this->getUser()->getMember();
    68     $member->setIsActive(true);
    69     $member->save();
    70 
    71     $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('pc_address_token', $member->getId());
    72     $memberConfig->delete();
    73 
    74     $this->getUser()->setIsSNSMember(true);
    75     $this->redirect('member/home');
    76   }
    7763}
  • OpenPNE3/plugins/opAuthMailAddressPlugin/trunk/lib/form/opAuthRegisterFormMailAddress.class.php

    r10008 r10120  
    2020  public function doSave()
    2121  {
     22    if ($this->getMember()->getConfig('mobile_address') || $this->getMember()->getConfig('pc_address'))
     23    {
     24      return true;
     25    }
     26
    2227    if (sfConfig::get('app_is_mobile', false))
    2328    {
  • OpenPNE3/plugins/opAuthMailAddressPlugin/trunk/lib/user/opAuthAdapterMailAddress.class.php

    r10008 r10120  
    1919{
    2020  protected $authModuleName = 'opAuthMailAddress';
     21
     22 /**
     23  * @see opAuthAdapter::activate()
     24  */
     25  public function activate()
     26  {
     27    parent::activate();
     28
     29    $member = sfContext::getInstance()->getUser()->getMember();
     30    if ($member)
     31    {
     32      if ($token = MemberConfigPeer::retrieveByNameAndMemberId('mobile_address_token', $member->getId()))
     33      {
     34        $token->delete();
     35      }
     36
     37      if ($token = MemberConfigPeer::retrieveByNameAndMemberId('pc_address_token', $member->getId()))
     38      {
     39        $token->delete();
     40      }
     41    }
     42
     43    return $member;
     44  }
    2145
    2246  /**
Note: See TracChangeset for help on using the changeset viewer.