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

Changeset 9917


Ignore:
Timestamp:
Jan 5, 2009, 6:18:37 PM (11 years ago)
Author:
ebihara
Message:

fixed pre-registration member doesn't complete registration

Location:
OpenPNE3/plugins/opAuthMailAddressPlugin/trunk/lib/form
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opAuthMailAddressPlugin/trunk/lib/form/opAuthLoginFormMailAddress.class.php

    r9911 r9917  
    4646    parent::configure();
    4747  }
    48 
    49   public function doSave()
    50   {
    51     if (sfConfig::get('app_is_mobile', false))
    52     {
    53       $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('mobile_address_pre', $this->getMember()->getId());
    54       $memberConfig->setName('mobile_address');
    55     }
    56     else
    57     {
    58       $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('pc_address_pre', $this->getMember()->getId());
    59       $memberConfig->setName('pc_address');
    60     }
    61 
    62     return $memberConfig->save();
    63   }
    6448}
  • OpenPNE3/plugins/opAuthMailAddressPlugin/trunk/lib/form/opAuthRegisterFormMailAddress.class.php

    r9905 r9917  
    1010class opAuthRegisterFormMailAddress extends opAuthRegisterForm
    1111{
     12  public function doSave()
     13  {
     14    if (sfConfig::get('app_is_mobile', false))
     15    {
     16      $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('mobile_address_pre', $this->getMember()->getId());
     17      $memberConfig->setName('mobile_address');
     18    }
     19    else
     20    {
     21      $memberConfig = MemberConfigPeer::retrieveByNameAndMemberId('pc_address_pre', $this->getMember()->getId());
     22      $memberConfig->setName('pc_address');
     23    }
     24
     25    return $memberConfig->save();
     26  }
    1227}
Note: See TracChangeset for help on using the changeset viewer.