From cec870835b7407da12f00a2f546e0ca02279c9fe Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Sun, 29 Jul 2018 23:58:09 +0200 Subject: [PATCH] Patch the username password function --- js/backend.admin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/backend.admin.js b/js/backend.admin.js index d6afce4..dda3013 100644 --- a/js/backend.admin.js +++ b/js/backend.admin.js @@ -2288,7 +2288,7 @@ Pianos4Backend.ResetUserPassword = function( user ) .css( 'padding-top', '20px' ); $( '
' ) - .text( "Change password for the user '" + user.name + "':" ) + .text( "Change password for the user " + user.name + " (" + user.username + "):" ) .append( $( '
' ) .css( 'display', 'grid' ) @@ -2348,13 +2348,13 @@ Pianos4Backend.ResetUserPassword = function( user ) if( ! error ) { - var h = hex_md5( user.name + ':' + pass ); + var h = hex_md5( user.username + ':' + pass ); $.ajax( { url: '?action=rpc&method=updateUserPassword', data: { uid: user.id, - name: user.name, + name: user.username, newpassword: h }, type: "POST", -- GitLab