From: <vb...@us...> - 2002-09-16 05:24:42
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv5760 Modified Files: admin_change_password.php Log Message: The change password form is now working. Index: admin_change_password.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/admin_change_password.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- admin_change_password.php 15 Sep 2002 04:03:51 -0000 1.13 +++ admin_change_password.php 16 Sep 2002 05:24:40 -0000 1.14 @@ -11,14 +11,20 @@ require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' ); if ( isset( $f_action ) && ( $f_action == 'change' ) ) { - $f_current_password = gpc_get_string( $f_current_password ); - $f_password = gpc_get_string( $f_password ); - $f_password2 = gpc_get_string( $f_password2 ); + $f_current_password = gpc_get_string( 'f_current_password' ); + $f_password = gpc_get_string( 'f_password' ); + $f_password2 = gpc_get_string( 'f_password' ); - # @@@@ Use user_change_password() after it is implemented + if ( false === user_change_password( $g_string_cookie_val, $f_current_password, $f_password, $f_password2 ) ) { + echo "NOT IMPLEMENTED"; + exit; + } - echo "NOT IMPLEMENTED"; - exit; + echo <<<EOT + <div align="center"> + <p>Password changed successfully</p> + </div> +EOT; } $row = get_user_info_arr( $g_string_cookie_val ); |