Changeset 12234
- Timestamp:
- Jul 12, 2009, 12:39:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE3/trunk/lib/user/sfOpenPNESecurityUser.class.php
r11684 r12234 130 130 } 131 131 132 public function getCurrentAuthMode( )132 public function getCurrentAuthMode($allowGuess = true) 133 133 { 134 134 $authMode = $this->getAttribute('auth_mode', null, 'sfOpenPNESecurityUser'); … … 137 137 if (!in_array($authMode, $authModes)) 138 138 { 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 } 141 147 } 142 148
Note: See TracChangeset
for help on using the changeset viewer.