mirror of https://github.com/BOINC/boinc.git
45 lines
1.0 KiB
PHP
45 lines
1.0 KiB
PHP
<?php
|
|
|
|
require_once("../inc/db.inc");
|
|
require_once("../inc/util.inc");
|
|
|
|
db_init();
|
|
|
|
$user = get_logged_in_user(false);
|
|
|
|
page_head("Change password");
|
|
|
|
echo "
|
|
<form method=post action=edit_passwd_action.php>
|
|
";
|
|
|
|
start_table();
|
|
|
|
if ($user) {
|
|
echo "
|
|
<input type=hidden name=auth value=$user->authenticator>
|
|
";
|
|
} else {
|
|
row1("You can identify yourself using either
|
|
<ul>
|
|
<li> your email address and old password
|
|
<li> your account key
|
|
</ul>
|
|
"
|
|
);
|
|
row2("Email address", "<input name=email_addr size=40>");
|
|
row2("Current password", "<input type=password name=old_passwd size=40>");
|
|
row2(
|
|
"<b>OR</b>: Account key
|
|
<br><font size=-2><a href=get_passwd.php>Get account key</a>",
|
|
"<input name=auth size=40>"
|
|
);
|
|
}
|
|
row2("New password", "<input type=password name=passwd size=40>");
|
|
row2("New password, again", "<input type=password name=passwd2 size=40>");
|
|
row2("", "<input type=submit value='Change password'>");
|
|
end_table();
|
|
echo "</form>\n";
|
|
page_tail();
|
|
?>
|