public function forgotPasswordSubmit()
 {
     $username = Input::get("username");
     if (empty($username)) {
         CommonUtilities::print_error_message("Please provide a valid username");
         return View::make("account/forgot-password");
     } else {
         $wsisConfig = Config::get('pga_config.wsis');
         if ($wsisConfig['tenant-domain'] == "") {
             $username = $username;
         } else {
             $username = $username . "@" . $wsisConfig['tenant-domain'];
         }
         try {
             $key = WSIS::validateUser($username);
             if (!empty($key)) {
                 $result = WSIS::sendPasswordResetNotification($username, $key);
                 if ($result === true) {
                     CommonUtilities::print_success_message("Password reset notification was sent to your email account");
                     return View::make("home");
                 } else {
                     CommonUtilities::print_error_message("Failed to send password reset notification email");
                     return View::make("home");
                 }
             } else {
                 CommonUtilities::print_error_message("Failed to validate the given username");
                 return View::make("account/forgot-password");
             }
         } catch (Exception $ex) {
             CommonUtilities::print_error_message("Password reset operation failed");
             return View::make("home");
         }
     }
 }