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

WordPress Trac noreply at wordpress.org
Sun Feb 22 16:37:14 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 has-    |     Focuses:  javascript, administration
  patch                          |
---------------------------------+-----------------------------------------

Comment (by ocean90):

 Some thoughts to [attachment:24633.27.patch]:

 * The JavaScript needs an overhaul. Why is `wp.passwordGenerator` used so
 often? Can't it be `this` or a shorter variable? Same for
 `wp.passwordGenerator`
 * [31483] should be included
 * `check_strength: function() {` should be `checkStrength: function() { `
 (Why does the generator has do this? Can we trigger a .change() event?)
 * `$.post()` should be replaced with `wp.ajax.post()`
 * To be consistent, the AJAX action should be `generate-password` (no
 underscore)

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


More information about the wp-trac mailing list