2005-08-09 18:46:53 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2005-08-09 18:46:53 +00:00
|
|
|
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
|
2011-02-09 22:11:34 +00:00
|
|
|
check_get_args(array());
|
|
|
|
|
2005-08-26 22:26:26 +00:00
|
|
|
$user = get_logged_in_user(false);
|
2005-08-09 18:46:53 +00:00
|
|
|
|
2010-01-16 06:19:19 +00:00
|
|
|
page_head(tra("Change password"));
|
2005-08-09 18:46:53 +00:00
|
|
|
|
2005-08-26 22:26:26 +00:00
|
|
|
echo "
|
2013-05-10 05:49:25 +00:00
|
|
|
<form method=post action=".secure_url_base()."edit_passwd_action.php>
|
2005-08-26 22:26:26 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
|
|
|
|
if ($user) {
|
|
|
|
echo "
|
|
|
|
<input type=hidden name=auth value=$user->authenticator>
|
|
|
|
";
|
2009-02-17 17:39:57 +00:00
|
|
|
start_table();
|
2005-08-26 22:26:26 +00:00
|
|
|
} else {
|
2009-02-17 17:39:57 +00:00
|
|
|
start_table();
|
2010-01-16 06:19:19 +00:00
|
|
|
row1(tra("You can identify yourself using either").
|
|
|
|
"<ul>".
|
|
|
|
"<li>".tra("your email address and old password").
|
|
|
|
"<li>".tra("your account key").
|
|
|
|
"</ul>"
|
2005-08-26 22:26:26 +00:00
|
|
|
);
|
2010-01-16 06:19:19 +00:00
|
|
|
row2(tra("Email address"), "<input name=email_addr size=40>");
|
|
|
|
row2(tra("Current password"), "<input type=password name=old_passwd size=40>");
|
2005-08-26 22:26:26 +00:00
|
|
|
row2(
|
2010-01-16 06:19:19 +00:00
|
|
|
tra("<b>OR</b>: Account key").
|
|
|
|
"<br><font size=-2><a href=get_passwd.php>".tra("Get account key by email")."</a>",
|
2005-08-26 22:26:26 +00:00
|
|
|
"<input name=auth size=40>"
|
|
|
|
);
|
|
|
|
}
|
2010-01-16 06:19:19 +00:00
|
|
|
row2(tra("New password"), "<input type=password name=passwd size=40>");
|
|
|
|
row2(tra("New password, again"), "<input type=password name=passwd2 size=40>");
|
2014-10-02 19:15:54 +00:00
|
|
|
row2("", "<input class=\"btn btn-default\" type=submit value='".tra("Change password")."'>");
|
2005-08-09 18:46:53 +00:00
|
|
|
end_table();
|
|
|
|
echo "</form>\n";
|
|
|
|
page_tail();
|
|
|
|
?>
|