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

Changeset 9809


Ignore:
Timestamp:
Dec 31, 2008, 4:44:53 PM (11 years ago)
Author:
ebihara
Message:

fixed fatal error when undefined-member tries authentication

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/validator/opAuthValidatorMemberConfigAndPassword.class.php

    r9798 r9809  
    2727    $values = parent::doClean($values);
    2828
     29    if (empty($values['member']) || !($values['member'] instanceof Member))
     30    {
     31      throw new sfValidatorError($this, 'invalid');
     32      opActivateBehavior::enable();
     33    }
     34
    2935    $valid_password = MemberConfigPeer::retrieveByNameAndMemberId('password', $values['member']->getId())->getValue();
    3036    opActivateBehavior::enable();
Note: See TracChangeset for help on using the changeset viewer.