public function resetPassword()
 {
     $confirmation = Input::get("confirmation");
     $username = Input::get("username");
     if (empty($username) || empty($confirmation)) {
         return View::make("home");
     } else {
         $wsisConfig = Config::get('pga_config.wsis');
         if ($wsisConfig['tenant-domain'] == "") {
             $username = $username;
         } else {
             $username = $username . "@" . $wsisConfig['tenant-domain'];
         }
         try {
             $key = WSIS::validateConfirmationCode($username, $confirmation);
             if (!empty($key)) {
                 return View::make("account/reset-password", array("key" => $key, "username" => $username));
             } else {
                 return View::make("home");
             }
         } catch (Exception $e) {
             return View::make("home");
         }
     }
 }
 public function resetPassword()
 {
     $confirmation = Input::get("confirmation");
     $username = Input::get("username");
     if (empty($username) || empty($confirmation)) {
         return View::make("home");
     } else {
         $username = $username . "@" . explode("@", Config::get('pga_config.wsis')['admin-username'])[1];
         try {
             $key = WSIS::validateConfirmationCode($username, $confirmation);
             if (!empty($key)) {
                 return View::make("account/reset-password", array("key" => $key, "username" => $username));
             } else {
                 return View::make("home");
             }
         } catch (Exception $e) {
             return View::make("home");
         }
     }
 }