Skip to content

Commit

Permalink
Remove 'Current Password' field from settings page.
Browse files Browse the repository at this point in the history
See #3406.
  • Loading branch information
boonebgorges committed Jul 24, 2024
1 parent 5264c0d commit edcc5e7
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@
<p class="description">Your email address cannot be changed. If your City Tech email address has changed, <a class="underline" href="<?php bp_get_root_domain(); ?>/about/contact-us">contact us</a> for assistance.</p>
</div>

<div class="form-group settings-section current-pw-section">
<label for="pwd">Current Password</label>
<input class="form-control" type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" />

<?php
$account_type = openlab_get_displayed_user_account_type();
$include_acct_type = in_array( $account_type, array( 'student', 'alumni' ) ) ? ' account type, ' : ' ';
?>

<p class="description">Required to change<?php echo $include_acct_type ?>current password, first name, or last name. <a class="underline" href="<?php echo site_url(add_query_arg(array('action' => 'lostpassword'), 'wp-login.php'), 'login'); ?>" title="<?php _e('Password Lost and Found', 'buddypress'); ?>"><?php _e('Lost your password?', 'buddypress'); ?></a></p>
</div>

<div class="form-group settings-section name-section">
<label for="fname">First Name (required)</label>
<input class="form-control" type="text" name="fname" id="fname" value="<?php echo bp_get_profile_field_data(array('field' => 'First Name')) ?>" />
Expand Down

0 comments on commit edcc5e7

Please sign in to comment.