projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plugins like listcommands should not close their own pages without displaying errors...
[squirrelmail.git]
/
plugins
/
change_password
/
functions.php
diff --git
a/plugins/change_password/functions.php
b/plugins/change_password/functions.php
index 09d0cd455667d8d8a6be9a9bf9bf537ff198d63d..f956ef7f3eeed2019850c0742f1efe14a4f32814 100644
(file)
--- a/
plugins/change_password/functions.php
+++ b/
plugins/change_password/functions.php
@@
-3,9
+3,8
@@
/**
* functions.php - Change Password plugin
*
/**
* functions.php - Change Password plugin
*
- * Copyright (c) 2003-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
+ * @copyright © 2003-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage change_password
* @version $Id$
* @package plugins
* @subpackage change_password
@@
-86,11
+85,11
@@
function cpw_do_change()
require_once(SM_PATH . 'plugins/change_password/backend/'.$cpw_backend.'.php');
require_once(SM_PATH . 'plugins/change_password/backend/'.$cpw_backend.'.php');
- $msgs = do_hook
_function
('change_password_dochange',
- array (
- 'username' => $username,
- 'curpw' => $curpw,
- 'newpw' => $newpw
+ $msgs = do_hook('change_password_dochange',
+
$temp=
array (
+ 'username' =>
&
$username,
+ 'curpw' =>
&
$curpw,
+ 'newpw' =>
&
$newpw
) );
/* something bad happened, return */
) );
/* something bad happened, return */
@@
-100,7
+99,7
@@
function cpw_do_change()
/* update our password stored in the session */
$onetimepad = OneTimePadCreate(strlen($newpw));
/* 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);
$key = OneTimePadEncrypt($newpw, $onetimepad);
setcookie('key', $key, 0, $base_uri);
@@
-110,4
+109,3
@@
function cpw_do_change()
exit;
}
exit;
}
-?>
\ No newline at end of file