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

Changeset 12234


Ignore:
Timestamp:
Jul 12, 2009, 12:39:10 AM (14 years ago)
Author:
ebihara
Message:

changed sfOpenPNESecurityUser::getCurrentAuthMode() for considering noncommittal auth-mode

  • now doesn't call sfOpenPNESecurityUser::setCurrentAuthMode() when auth-mode is not a certain
  • added an $allowGuess argument
File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/user/sfOpenPNESecurityUser.class.php

    r11684 r12234  
    130130  }
    131131
    132   public function getCurrentAuthMode()
     132  public function getCurrentAuthMode($allowGuess = true)
    133133  {
    134134    $authMode = $this->getAttribute('auth_mode', null, 'sfOpenPNESecurityUser');
     
    137137    if (!in_array($authMode, $authModes))
    138138    {
    139       $authMode = array_shift($authModes);
    140       $this->setCurrentAuthMode($authMode);
     139      if ($allowGuess)
     140      {
     141        $authMode = array_shift($authModes);
     142      }
     143      else
     144      {
     145        $authMode = null;
     146      }
    141147    }
    142148
Note: See TracChangeset for help on using the changeset viewer.