<?php
require_once('session/start.php');
require_once('jabberaccounts.php');
require_role(ROLE_CUSTOMER);
$section = 'jabber_accounts';
title("Passwort für Jabber-Account ändern");
$account = get_jabberaccount_details($_GET['account']);
$account_string = $account['local'] . '@' . $account['domain'];
output(html_form('jabber_chpass', 'save', 'action=chpass', '
<table>
<tr><td>Account-Name:</td><td>' . $account_string . '</td></tr>
<tr><td>Passwort:</td><td><input type="password" name="newpass" value="" autocomplete="new-password"></td></tr>
<tr><td>Wiederholung:</td><td><input type="password" name="newpass2" value="" autocomplete="new-password"></td></tr>
</table>
<br>
<input type="hidden" name="accountid" value="' . $account['id'] . '">
<input type="submit" name="submit" value="Speichern">
'));