Merge branch 'bug-1394' into testserver-stable
[cacert-devel.git] / pages / account / 14.php
1 <? /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */ ?>
18 <?
19 if (intval($_REQUEST['force']) === 1)
20 {
21 ?>
22
23 <p style="border:dotted 1px #900;padding:0.3em;bold;color:#ffffff;background-color:#ff0000;"><strong><center>
24 <?=_("For your own security you should change your pass phrase immediately!"); ?></center></strong>
25 </p>
26 <?}?>
27
28 <form method="post" action="account.php">
29 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="400">
30 <tr>
31 <td colspan="2" class="title"><?=_("Change Pass Phrase")?></td>
32 </tr>
33 <? if($_SESSION['_config']['hostname'] != $_SESSION['_config']['securehostname']) { ?>
34 <tr>
35 <td class="DataTD"><?=_("Old Pass Phrase")?>: </td>
36 <td class="DataTD"><input type="password" name="oldpassword"></td>
37 </tr>
38 <? } ?>
39 <tr>
40 <td class="DataTD"><?=_("New Pass Phrase")?><span class="error_indicator">*</span>: </td>
41 <td class="DataTD"><input type="password" name="pword1"></td>
42 </tr>
43 <tr>
44 <td class="DataTD"><?=_("Pass Phrase Again")?><span class="error_indicator">*</span>: </td>
45 <td class="DataTD"><input type="password" name="pword2"></td>
46 </tr>
47 <tr>
48 <td class="DataTD" colspan="2"><span class="error_indicator">*</span><?=_("Please note, in the interests of good security, the pass phrase must be made up of an upper case letter, lower case letter, number and symbol (all white spaces at the beginning and end are removed).")?></td>
49 </tr>
50 <tr>
51 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Update Pass Phrase")?>"></td>
52 </tr>
53 </table>
54 <input type="hidden" name="csrf" value="<?=make_csrf('pwchange')?>" />
55 <input type="hidden" name="oldid" value="<?=$id?>">
56 </form>