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

Changeset 9903


Ignore:
Timestamp:
Jan 5, 2009, 3:21:49 PM (11 years ago)
Author:
ebihara
Message:

#3349:opAuthLoginFormMailAddress has been enabled

File:
1 edited

Legend:

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

    r9893 r9903  
    88 * @author     Kousuke Ebihara <ebihara@tejimaya.com>
    99 */
    10 class _opAuthLoginFormMailAddress extends opAuthLoginForm
     10class opAuthLoginFormMailAddress extends opAuthLoginForm
    1111{
    1212  public function configure()
     
    2222    )));
    2323
    24     $this->mergePostValidator(
    25       new opAuthValidatorMemberConfigAndPassword(array('config_name' => 'pc_address'))
    26     );
     24    if ($this->getAuthAdapter()->getAuthConfig('is_check_multiple_address'))
     25    {
     26      $this->mergePostValidator(new sfValidatorOr(array(
     27        new opAuthValidatorMemberConfigAndPassword(array('config_name' => 'mobile_address', 'field_name' => 'mail_address')),
     28        new opAuthValidatorMemberConfigAndPassword(array('config_name' => 'pc_address', 'field_name' => 'mail_address')),
     29      )));
     30    }
     31    else
     32    {
     33      if (sfConfig::get('app_is_mobile', false))
     34      {
     35        $configName = 'mobile_address';
     36      }
     37      else
     38      {
     39        $configName = 'pc_address';
     40      }
     41      $this->mergePostValidator(
     42        new opAuthValidatorMemberConfigAndPassword(array('config_name' => $configName, 'field_name' => 'mail_address'))
     43      );
     44    }
    2745
    2846    parent::configure();
Note: See TracChangeset for help on using the changeset viewer.