Changeset 1438
- Timestamp:
- 06/13/06 14:34:52 (2 years ago)
- Files:
-
- trunk/lib/user/sfBasicSecurityUser.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/user/sfBasicSecurityUser.class.php
r1415 r1438 52 52 * 53 53 * @param mixed credential 54 */ 54 */ 55 55 public function removeCredential($credential) 56 56 { 57 57 if ($this->hasCredential($credential)) 58 58 { 59 for ($i = 0, $z = count($this->credentials); $i < $z; $i++)59 foreach ($this->credentials as $key => $value) 60 60 { 61 if ($credential == $ this->credentials[$i])61 if ($credential == $value) 62 62 { 63 63 if (sfConfig::get('sf_logging_active')) $this->getContext()->getLogger()->info('{sfUser} remove credential "'.$credential.'"'); 64 64 65 unset($this->credentials[$ i]);65 unset($this->credentials[$key]); 66 66 return; 67 67 } 68 68 } 69 69 } 70 } 70 } 71 71 72 72 /**