Changeset 14305
- Timestamp:
- 12/24/08 11:29:20 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfGuardHttpAuthPlugin/lib/sfGuardHttpAuth.class.php
r14131 r14305 13 13 /** 14 14 * Use http authentication to authenticate the user 15 * @return boolean true if the user is now connected, false otherwise 15 16 */ 16 p rivatefunction signinIfPossible()17 public static function signinIfPossible() 17 18 { 18 19 // if PHP_AUTH_USER is not set, return false … … 22 23 $password = $_SERVER['PHP_AUTH_PW']; 23 24 24 // determine the current ORM 25 // - base on dbfinder technichttp://trac.symfony-project.org/browser/plugins/DbFinderPlugin/trunk/lib/DbFinder.php#L3925 // determine the current ORM - based on dbfinder technic 26 // - http://trac.symfony-project.org/browser/plugins/DbFinderPlugin/trunk/lib/DbFinder.php#L39 26 27 $tmp = new sfGuardUser(); 27 28 $is_doctrine = $tmp instanceof Doctrine_Record; … … 49 50 // if all previous tests passed, return true 50 51 return true; 51 }} 52 } 53 } 52 54 53 55 ?>