[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:17:06 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 adamsilverstein):
Thanks! This looks really good, I love the idea of abstracting the
functionality so we can use it everywhere we create passwords in core.
Wondering if should namespace into wp global to make object wp.passwords?
Also, maybe move to wp-util instead of user-profile.js? Will
plugins/themes be able to leverage the password generator?
I will review in more detail, test and see about extending to other
password fields to see how straightforward that is.
Thanks for keeping this ticket alive :)
Replying to [comment:80 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:81>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list