X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=ng_selfservice%2Fpassword.php;fp=ng_selfservice%2Fpassword.php;h=a6e67951a0171ec58b201af46291e558369dca6a;hp=41296ed2dd7f5aee5a61d26e4042030b32dd91e3;hb=80bfc5e1b11694553ddaa48e3b181462cfadc9dd;hpb=dbb1f2c9894385044ed85b64d9016b2eeb06d649 diff --git a/ng_selfservice/password.php b/ng_selfservice/password.php index 41296ed2d..a6e67951a 100644 --- a/ng_selfservice/password.php +++ b/ng_selfservice/password.php @@ -1,5 +1,92 @@ -Chagne password +myaccount_passwd(array( + 'session_id' => $_COOKIE['session_id'], + 'svcnum' => $_POST['svcnum'], + 'new_password' => $_POST['new_password'], + 'new_password2' => $_POST['new_password2'], + )); + + if ($pwd_change_result['error']) { + $error = $pwd_change_result['error']; + } else { + $pwd_change_success = true; + } +} + +if ($pwd_change_success) { +?> + +

Password changed for .

+ +list_svcs(array( + 'session_id' => $_COOKIE['session_id'], + 'svcdb' => 'svc_acct', + )); + if (isset($pwd_change_svcs['error'])) { + $error = $error || $pwd_change_svcs['error']; + } + if (!isset($pwd_change_svcs['svcs'])) { + $pwd_change_svcs['svcs'] = $pwd_change_svcs['svcs']; + $error = $error || 'Unknown error loading services'; + } + if ($error) { + include('elements/error.php'); + } +?> + +
+ + + + + + + + + + + + + + + + +
Change password for account: + +
New password: + +
+ + +
Re-enter new password:
+
+ + + +
+ + +