[wp-trac] [WordPress Trac] #24633: Allow admins to generate and send new passwords for users

WordPress Trac noreply at wordpress.org
Mon Feb 2 15:01:33 UTC 2015


#24633: Allow admins to generate and send new passwords for users
-------------------------------------+-------------------------------------
 Reporter:  mordauk                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  4.2
Component:  Users                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  dev-feedback needs-      |     Focuses:  javascript,
  patch                              |  administration
-------------------------------------+-------------------------------------

Comment (by mordauk):

 [https://core.trac.wordpress.org/attachment/ticket/24633/24633.23.patch
 24633.23.patch] is my first pass at creating an abstracted password
 generation API that will make it much simpler to add password generation
 to profiles, user registration, user creation, etc.

 To set up password generation, we can call the new `passwords` object like
 so:
 {{{
 passwords.init( '#pass1', '#pass2', '#generate-password' );
 }}}
 The first password, confirmation, and submit field selectors are passed as
 parameters to the function, which will then handle generating the
 password, checking the strength, and displaying the results.

 Would anyone like to lend their opinions of this initial approach?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24633#comment:80>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list