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

Changeset 9660


Ignore:
Timestamp:
Dec 24, 2008, 6:59:32 PM (11 years ago)
Author:
ebihara
Message:

#3223:added opAuthValidatorMemberConfig and opAuthValidatorMemberConfigAndPassword

Location:
OpenPNE3/trunk/lib
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/form/sfOpenPNEAuthForm.class.php

    r9199 r9660  
    2323  {
    2424    $this->widgetSchema->setNameFormat('auth'.$this->getAuthMode().'[%s]');
     25  }
     26
     27  public function getMember()
     28  {
     29    $member = $this->getValue('member');
     30    if ($member instanceof Member)
     31    {
     32      return $member;
     33    }
     34
     35    return false;
    2536  }
    2637
  • OpenPNE3/trunk/lib/user/sfOpenPNESecurityUser.class.php

    r9657 r9660  
    107107  public function login($form)
    108108  {
    109     $memberId = $form->getValue('member_id');
     109    if ($member = $form->getMember())
     110    {
     111      $memberId = $member->getId();
     112    }
     113    else  // deprecated
     114    {
     115      $memberId = $form->getValue('member_id');
     116    }
     117
    110118    if ($memberId)
    111119    {
Note: See TracChangeset for help on using the changeset viewer.