using squirrelmail functions instead of working with $_SESSION directly
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 22 May 2005 13:46:06 +0000 (13:46 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 22 May 2005 13:46:06 +0000 (13:46 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9438 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/change_password/functions.php

index 09d0cd455667d8d8a6be9a9bf9bf537ff198d63d..d798966ee9e7cae2040dfb99f88c24a2383e03ab 100644 (file)
@@ -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);