Browse Source

using squirrelmail functions instead of working with $_SESSION directly

tokul 20 years ago
parent
commit
639984da87
1 changed files with 1 additions and 1 deletions
  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);