mirror of https://github.com/BOINC/boinc.git
web: Remove the confirmation password field in locations where the "show
password" toggle has been added
This commit is contained in:
parent
4c36d4c317
commit
2253277c38
|
@ -44,7 +44,7 @@ function toggle_passwd() {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
<input type="checkbox" id="passwd_visible" onclick="toggle_passwd()"> <label for="passwd_visible><small>Show password</small></label>
|
||||
<input type="checkbox" id="passwd_visible" onclick="toggle_passwd()"> <label for="passwd_visible"><small>Show password</small></label>
|
||||
', $name
|
||||
);
|
||||
}
|
||||
|
@ -95,7 +95,6 @@ function create_account_form($teamid, $next_url) {
|
|||
),
|
||||
"passwd", "", "password",'id="passwd"',passwd_visible_checkbox("passwd")
|
||||
);
|
||||
form_input_text(tra("Confirm password"), "passwd2", "", "password");
|
||||
form_select(
|
||||
sprintf('<span title="%s">%s</span>',
|
||||
tra("Select the country you want to represent, if any."),
|
||||
|
|
|
@ -175,10 +175,6 @@ function validate_post_make_user() {
|
|||
}
|
||||
|
||||
$passwd = post_str("passwd");
|
||||
$passwd2 = post_str("passwd2", true);
|
||||
if ($passwd2 && ($passwd != $passwd2)) {
|
||||
show_error(tra("New passwords are different"));
|
||||
}
|
||||
|
||||
$min_passwd_length = parse_config($config, "<min_passwd_length>");
|
||||
if (!$min_passwd_length) $min_passwd_length = 6;
|
||||
|
|
|
@ -26,11 +26,6 @@ $user = get_logged_in_user();
|
|||
$email_addr = strtolower(post_str("email_addr", true));
|
||||
|
||||
$passwd = post_str("passwd");
|
||||
$passwd2 = post_str("passwd2");
|
||||
|
||||
if ($passwd != $passwd2) {
|
||||
error_page(tra("New passwords are different"));
|
||||
}
|
||||
|
||||
$config = get_config();
|
||||
$min_passwd_length = parse_config($config, "<min_passwd_length>");
|
||||
|
|
|
@ -26,8 +26,7 @@ $user = get_logged_in_user();
|
|||
page_head(tra("Change password"));
|
||||
|
||||
form_start(secure_url_base()."edit_passwd_action.php", "post");
|
||||
form_input_text(tra("New password"), "passwd", "password",'id="passwd"',passwd_visible_checkbox("passwd"));
|
||||
form_input_text(tra("New password, again"), "passwd2", "password");
|
||||
form_input_text(tra("New password"), "passwd", "", "password",'id="passwd"',passwd_visible_checkbox("passwd"));
|
||||
form_submit(tra("Change password"));
|
||||
form_end();
|
||||
page_tail();
|
||||
|
|
Loading…
Reference in New Issue