[wp-trac] [WordPress Trac] #12461: Resend Pass to users from "admin > users"-list

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 2 15:23:32 UTC 2010


#12461: Resend Pass to users from "admin > users"-list
--------------------------+-------------------------------------------------
 Reporter:  F J Kaiser    |       Owner:                                      
     Type:  defect (bug)  |      Status:  new                                 
 Priority:  normal        |   Milestone:  3.0                                 
Component:  Users         |     Version:  2.9.2                               
 Severity:  normal        |    Keywords:  user, pass, password, login, wp_mail
--------------------------+-------------------------------------------------
 In some of my projects i got the case, that i have to resend the password
 to some of my users (in this cases WP is used as a CMS). So i needed a
 possibility to resend (better would be: reset) the pass. Currently i'm
 stuck with a custom admin-UI on a template-page that contains a list of
 users (each in a row).

 Currently i got the follwing (in a custom list/table of users) for each
 user at the end of the <tr>-row:
 {{{
 $user_login = isset($_POST['user_login']) ?
 stripslashes($_POST['user_login']) : '';
 echo
 '<td id="' . $user->ID . ';user_pass;' . $wpdb->users . '">' .
 '<form name="lostpasswordform" id="lostpasswordform" action="' . site_url
 ('wp-login.php?action=lostpassword') . '" method="post" target="_blank">'
 .
 '<input type="text" name="user_login" id="user_login" class="input hide"
 value="' . $curuser->user_login  . '" size="15" tabindex="10" />' .
 '<input type="submit" name="wp-submit" id="" class="small margin-null"
 value="reset" tabindex="100" />' .
 '</form>' .
 '</td>';
 }}}
 This makes it possible to resend the wp_mail to ask the user to reset the
 pass. I'm not the best at php, so i couldn't achieve any sort of bulk
 managing this, so i set the target to blank.

 I hope this function get's into the user-quickmenu. As i stated before: It
 would be great if you could reset the pass, so the user get's a new pass
 in an instant.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12461>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list