Development

Changeset 14305

You must first sign up to be able to contribute.

Changeset 14305

Show
Ignore:
Timestamp:
12/24/08 11:29:20 (4 years ago)
Author:
jerome.etienne
Message:

mainly beautifullation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfGuardHttpAuthPlugin/lib/sfGuardHttpAuth.class.php

    r14131 r14305  
    1313  /** 
    1414   * Use http authentication to authenticate the user 
     15   * @return boolean true if the user is now connected, false otherwise 
    1516  */ 
    16   private function signinIfPossible() 
     17  public static function signinIfPossible() 
    1718  { 
    1819    // if PHP_AUTH_USER is not set, return false 
     
    2223    $password = $_SERVER['PHP_AUTH_PW']; 
    2324 
    24     // determine the current ORM 
    25     // - base on dbfinder technic http://trac.symfony-project.org/browser/plugins/DbFinderPlugin/trunk/lib/DbFinder.php#L39 
     25    // determine the current ORM - based on dbfinder technic 
     26    // - http://trac.symfony-project.org/browser/plugins/DbFinderPlugin/trunk/lib/DbFinder.php#L39 
    2627    $tmp    = new sfGuardUser(); 
    2728    $is_doctrine  = $tmp instanceof Doctrine_Record; 
     
    4950    // if all previous tests passed, return true 
    5051    return true; 
    51   }} 
     52  } 
     53
    5254 
    5355?>