Plugin Directory

Changeset 400764


Ignore:
Timestamp:
06/24/2011 08:51:11 AM (15 years ago)
Author:
monperrus
Message:

solved bug related to changing the password on the profile page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-http-digest/trunk/wp-http-digest.php

    r400577 r400764  
    1818// a special hook on profile update
    1919function action_profile_update($user_id) {
    20   if ( isset( $_POST['pass1'] ) && $_POST['pass1'] == $_POST['pass2']) {
     20  if ( isset( $_POST['pass1'] ) && $_POST['pass1'] != '' && $_POST['pass1'] == $_POST['pass2']) {
    2121    $newpass_plain = $_POST['pass1'];
    2222    wp_set_password( $newpass_plain, $user_id );
Note: See TracChangeset for help on using the changeset viewer.