[wp-trac] [WordPress Trac] #34281: Allow admins to send users a 'Reset Password' link

WordPress Trac noreply at wordpress.org
Mon Nov 9 15:30:56 UTC 2015


#34281: Allow admins to send users a 'Reset Password' link
-------------------------------------------------+-------------------------
 Reporter:  Ipstenu                              |       Owner:
     Type:  defect (bug)                         |  adamsilverstein
 Priority:  normal                               |      Status:  assigned
Component:  Users                                |   Milestone:  4.4
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch needs-testing has-         |  Resolution:
  screenshots needs-refresh                      |     Focuses:  javascript
-------------------------------------------------+-------------------------

Comment (by eventualo):

 I tried the 34281.4.diff, but when I try to send the reset email using the
 ''Send reset link'' button in user profile I got a wrong message
 (''[object Object]'').

 So I uploaded a new 34281.5.diff with these changes:
 * inside `retrieve_password` function: if `$user_login` is empty and
 `$_POST['user_login']` is set, `$user_login` get `$_POST['user_login']`
 value; then, I updated the following IF statement to check only the value
 of `$user_login`.
 * inside `user-profile.js` file, I updated the `addInlineNotice` function:
 now the `resultDiv` prints html, because the output message can be html,
 and uses a fadeIn, useful if the user click the button again.

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


More information about the wp-trac mailing list