瀏覽代碼

using squirrelmail functions instead of working with $_SESSION directly

tokul 20 年之前
父節點
當前提交
639984da87
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/change_password/functions.php

+ 1 - 1
plugins/change_password/functions.php

@@ -100,7 +100,7 @@ function cpw_do_change()
 
     /* update our password stored in the session */
     $onetimepad = OneTimePadCreate(strlen($newpw));
-    $_SESSION['onetimepad'] = $onetimepad;
+    sqsession_register($onetimepad,'onetimepad');
     $key = OneTimePadEncrypt($newpw, $onetimepad);
     setcookie('key', $key, 0, $base_uri);