Make WordPress Core

Changeset 1317


Ignore:
Timestamp:
05/19/2004 07:05:40 AM (20 years ago)
Author:
saxmatt
Message:

Fix so you don't have to relogin when you update your password.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/auth.php

    r1135 r1317  
    1515    }
    1616
    17     if (!($user_login != ''))
     17    if ('' == $user_login)
    1818        return false;
    1919    if (!$user_pass_md5)
     
    2424    if (!$login) {
    2525        return false;
     26
    2627    } else {
    2728        if ($login->user_login == $user_login && md5($login->user_pass) == $user_pass_md5) {
  • trunk/wp-admin/profile.php

    r1240 r1317  
    8080        $newuser_pass = $_POST["pass1"];
    8181        $updatepassword = "user_pass=MD5('$newuser_pass'), ";
    82         setcookie("wordpresspass_".$cookiehash,md5($newuser_pass),time()+31536000);
     82        setcookie('wordpresspass_'.$cookiehash, " ", time() - 31536000, COOKIEPATH);
     83        setcookie('wordpresspass_'.$cookiehash, md5(md5($newuser_pass)), time() + 31536000, COOKIEPATH);
    8384    }
    8485
     
    247248    </style>
    248249  <table width="99%"  border="0" cellspacing="2" cellpadding="3">
     250    <tr>
     251      <th width="33%" scope="row"><?php _e('Login:') ?></th>
     252      <td width="73%"><?php echo $profiledata->user_login; ?></td>
     253    </tr>   
    249254    <tr>
    250255      <th width="33%" scope="row"><?php _e('First name:') ?></th>
Note: See TracChangeset for help on using the changeset viewer.