Changeset 21321
- Timestamp:
- 08/22/09 01:09:38 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/ysfOpenPlugin/trunk/lib/user/ysfOpenIDUser.class.php
r20251 r21321 27 27 } 28 28 29 public function login($identity, $profile )29 public function login($identity, $profile = array()) 30 30 { 31 31 $this->setAuthenticated(true); … … 56 56 public function isGoogle() 57 57 { 58 return (stripos($this->getUsername(), ' www.google.com') !== false);58 return (stripos($this->getUsername(), 'google.com') !== false); 59 59 } 60 60 61 61 public function isYahoo() 62 62 { 63 return (stripos($this->getUsername(), ' me.yahoo.com') !== false);63 return (stripos($this->getUsername(), 'yahoo.com') !== false); 64 64 } 65 65