示例#1
0
 /**
  * Retrieve all details of the current and removed rateplans on the given user's subscription. The Subscription summary that gets returned will contain a list of Active plans, and removed plans.
  * @param $accountName Name of the target account
  * @return Subscription details
  */
 public static function loginAttempt($username, $partnerLogin)
 {
     session_start();
     session_regenerate_id();
     $_SESSION = array();
     $loginValid = LoginManager::validateUsername($username);
     if ($loginValid) {
         $loginResult = LoginManager::loginSuccess($username, $partnerLogin);
     } else {
         $loginResult = false;
     }
     return $loginResult;
 }