瀏覽代碼

fixed an error that wouldn't display "Password Incorrect". This cropped
up when we added redirect.php. Fixed now.

Luke Ehresman 24 年之前
父節點
當前提交
065076b8ae
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/redirect.php

+ 3 - 0
src/redirect.php

@@ -59,6 +59,9 @@
       if ($force_username_lowercase)
       if ($force_username_lowercase)
           $username = strtolower($login_username);
           $username = strtolower($login_username);
       $imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0);
       $imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0);
+	  if (!$imapConnection) {
+	  	exit;
+	  }
       sqimap_logout($imapConnection);
       sqimap_logout($imapConnection);
 
 
       setcookie("username", $login_username, 0, $base_uri);
       setcookie("username", $login_username, 0, $base_uri);