Open Danilovt opened 9 months ago
So what you're saying is that you're entering the correct username and password, but not the OTP for MFA and the auth failure error is returning the live password in the console.
Looks like that's coming from line 654 of /includes/core/login.js.php
It should be noted that it does this with every login, not just failed logins, you just lose it in the console if you don't have your log set to be preserved across pages.
You can set debugJavascript to false on line 34 of /includes/core/login.js.php to stop this behavior on your installation temporarily.
// Other values
mfaData['login'] = ($('#login').val());
mfaData['pw'] = ($('#pw').val());
mfaData['duree_session'] = ($('#session_duration').val());
mfaData['screenHeight'] = $('body').innerHeight();
mfaData['randomstring'] = randomstring;
mfaData['TimezoneOffset'] = TimezoneOffset;
mfaData['client'] = client_info;
mfaData['user_2fa_selection'] = mfaMethod;
if (isDuo === true && $("#duo_code").val() !== "" && $("#duo_state").val() !== "") {
mfaData['duo_code'] = sanitizeString($("#duo_code").val());
mfaData['duo_state'] = sanitizeString($("#duo_state").val());
mfaData['user_2fa_selection'] = 'duo';
} else if(mfaMethod === 'duo' && isDuo !== true) {
mfaData['duo_status'] = 'start_duo_auth';
}
if (debugJavascript === true) {
console.log('Data submitted to identifyUser:');
console.log(mfaData);
@nilsteampassnet would it be possible to use a global setting for debug and turn it off and on in the settings menu? Then it could default to off for new installations and take care of issues like this?