[wp-trac] [WordPress Trac] #34281: Allow admins to send users a 'Reset Password' link
WordPress Trac
noreply at wordpress.org
Fri Feb 5 16:09:31 UTC 2021
#34281: Allow admins to send users a 'Reset Password' link
-------------------------------------------------+-------------------------
Reporter: Ipstenu | Owner:
| adamsilverstein
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 5.7
Component: Users | Version: 4.4
Severity: normal | Resolution:
Keywords: has-screenshots has-ux-feedback | Focuses: javascript
has-patch |
-------------------------------------------------+-------------------------
Comment (by joedolson):
Replying to [comment:84 adamsilverstein]:
> > Thinking when it's AJAX it would be nice to send success/failure
messages to wp.a11y.speak() :)
>
> @afercia I realized we don't have this in place yet. We have a single
place we use an ajax action to sent the password reset:
>
> `var resetAction = wp.ajax.post( 'send-password-reset', data );`
>
> Would `wp.a11y.speak` be added immediately before calling the ajax post?
eg
>
> `wp.a11y.speak( 'Sending password reset' );`
>
> or would we fire immediately after the action with
> `wp.a11y.speak( 'Password reset sent' );`
>
> Or ''both''?
>
>
Ideally, you'd send the wp.a11y.speak notification after the ajax post; it
should probably be inside the `addInlineNotice` helper function, so that
it reflects the same message that's shown to users.
I don't think this behavior is something that will take long enough that
an 'in process' message is required.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34281#comment:99>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list