Make WordPress Core


Ignore:
Timestamp:
02/02/2021 06:11:26 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Login and Registration: Improve the UX of the Reset Password screen.

Previously, it was unclear that the displayed password is only being suggested and should be saved by clicking the Reset Password button.

This adds separate Generate Password and Save Password buttons, for clarity.

Props xkon, estelaris, jaymanpandya, hedgefield, audrasjb, erichmond, magicroundabout, lukecavanagh, knutsp, tinodidriksen, nico_martin, markhowellsmead, kara.mcnair, e_baker, pixelverbieger, souri_wpaustria, megabyterose, poena, whyisjake.
Fixes #39638.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r50146 r50153  
    1313
    1414/**
    15  * Ajax handler for the Heartbeat API in
    16  * the no-privilege context.
     15 * Ajax handler for the Heartbeat API in the no-privilege context.
    1716 *
    1817 * Runs when the user is not logged in.
     
    39783977
    39793978/**
     3979 * Ajax handler for generating a password in the no-privilege context.
     3980 *
     3981 * @since 5.7.0
     3982 */
     3983function wp_ajax_nopriv_generate_password() {
     3984    wp_send_json_success( wp_generate_password( 24 ) );
     3985}
     3986
     3987/**
    39803988 * Ajax handler for saving the user's WordPress.org username.
    39813989 *
Note: See TracChangeset for help on using the changeset viewer.