diff --git a/html/js/main.js b/html/js/main.js index cd576a9..a51a0ee 100644 --- a/html/js/main.js +++ b/html/js/main.js @@ -428,8 +428,12 @@ * Collect data from login form */ async function set_btn_login( map_params ){ - + let raw_pwd = document.getElementById('login_pwd').value; + + console.log("pwd = "+raw_pwd); + console.log("nonce = " + g_svr_nonce); + const pwd_hash = await getHash256(raw_pwd+g_svr_nonce); map_params.set( 'username', document.getElementById('login_name').value ); map_params.set( 'password', pwd_hash );