[wp-trac] [WordPress Trac] #24633: Allow admins to generate and send new passwords for users
WordPress Trac
noreply at wordpress.org
Mon Feb 2 16:27:20 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 azaozz):
Replying to [comment:81 adamsilverstein]:
> 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?
Namespacing it sounds good. However moving it to wp-util.js doesn't seem
right. Currently user-profile.js requires password-strength-meter.js which
loads zxcvbn.min.js which is a 683KB minified JS file. There is no way we
are going to load that "globally" :)
Perhaps better to add the password checking/generating functions to
`wp.passwordStrength` in password-strength-meter.js? Then we can enqueue
that file everywhere a password can be typed. I know the names aren't that
good. We could probably rename the file, but should keep the script-loader
"handle" name for back-commpat.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24633#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list