Changeset 49291
- Timestamp:
- 10/24/2020 12:05:15 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/auth-app.js
r49276 r49291 74 74 if ( raw ) { 75 75 url = raw + ( -1 === raw.indexOf( '?' ) ? '?' : '&' ) + 76 'user_login=' + encodeURIComponent( authApp.user_login ) + 76 'site_url=' + encodeURIComponent( authApp.site_url ) + 77 '&user_login=' + encodeURIComponent( authApp.user_login ) + 77 78 '&password=' + encodeURIComponent( response.password ); 78 79 -
trunk/src/wp-admin/authorize-application.php
r49282 r49291 13 13 $new_password = ''; 14 14 15 // This is the no-js fallback script. Generally this will all be handled by `auth-app.js` 15 16 if ( isset( $_POST['action'] ) && 'authorize_application_password' === $_POST['action'] ) { 16 17 check_admin_referer( 'authorize_application_password' ); … … 45 46 $redirect = add_query_arg( 46 47 array( 47 'username' => urlencode( wp_get_current_user()->user_login ), 48 'password' => urlencode( $new_password ), 48 'site_url' => urlencode( site_url() ), 49 'user_login' => urlencode( wp_get_current_user()->user_login ), 50 'password' => urlencode( $new_password ), 49 51 ), 50 52 $success_url … … 109 111 'authApp', 110 112 array( 113 'site_url' => site_url(), 111 114 'user_login' => $user->user_login, 112 115 'success' => $success_url, … … 231 234 add_query_arg( 232 235 array( 233 'username' => $user->user_login, 234 'password' => '[------]', 236 'site_url' => site_url(), 237 'user_login' => $user->user_login, 238 'password' => '[------]', 235 239 ), 236 240 $success_url
Note: See TracChangeset
for help on using the changeset viewer.