Make WordPress Core

Changeset 11162 for trunk/wp-login.php


Ignore:
Timestamp:
05/03/2009 05:06:29 PM (15 years ago)
Author:
westi
Message:

Add a nag message if the user is still using an auto-generated password. See #9710 props DD32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r11148 r11162  
    180180    $new_pass = wp_generate_password();
    181181    wp_set_password($new_pass, $user->ID);
     182    update_usermeta($user->ID, 'default_password_nag', true); //Set up the Password change nag.
    182183    $message  = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
    183184    $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
Note: See TracChangeset for help on using the changeset viewer.