"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "linotpd/src/linotp/public/js/manage.js" between
LinOTP-release-2.11.2.tar.gz and LinOTP-release-2.12.tar.gz

About: LinOTP is a flexible and versatile OTP-platform for strong user authentication (two-factor authentication with one time passwords).

manage.js  (LinOTP-release-2.11.2):manage.js  (LinOTP-release-2.12)
skipping to change at line 2625 skipping to change at line 2625
if (data.result.value.PassOnUserNotFound == "True") { if (data.result.value.PassOnUserNotFound == "True") {
checkBoxes.push("sys_passOnUserNotFound"); checkBoxes.push("sys_passOnUserNotFound");
}; };
if (data.result.value.PassOnUserNoToken == "True") { if (data.result.value.PassOnUserNoToken == "True") {
checkBoxes.push("sys_passOnUserNoToken"); checkBoxes.push("sys_passOnUserNoToken");
}; };
if (data.result.value['selfservice.realmbox'] == "True") { if (data.result.value['selfservice.realmbox'] == "True") {
checkBoxes.push("sys_realmbox"); checkBoxes.push("sys_realmbox");
} }
$("input:checkbox").val(checkBoxes); $("input:checkbox").val(checkBoxes);
/* *****************************************************************
* handle the tri state token.last_access, which are
* False, True, or date time format
*/
$('#token_last_access_check').prop('checked', false);
$('#token_last_access_entry').attr({'disabled': true});
$('#token_last_access_entry').val('');
var token_last_access = data.result.value['token.last_access'];
if (token_last_access !== undefined && token_last_access.toLowerCase()
!== 'false') {
$('#token_last_access_check').prop('checked', true);
$('#token_last_access_entry').attr({'disabled': false});
if (token_last_access.toLowerCase() !== 'true') {
$('#token_last_access_entry').val(token_last_access);
}
}
/* ***************************************************************** */
$('#sys_autoResyncTimeout').val(data.result.value.AutoResyncTimeout); $('#sys_autoResyncTimeout').val(data.result.value.AutoResyncTimeout);
$('#sys_mayOverwriteClient').val(data.result.value.mayOverwriteClient); $('#sys_mayOverwriteClient').val(data.result.value.mayOverwriteClient);
if (data.result.value.splitAtSign === "False") { if (data.result.value.splitAtSign === "False") {
$('#sys_splitAtSign').prop('checked', false); $('#sys_splitAtSign').prop('checked', false);
} else { } else {
$('#sys_splitAtSign').prop('checked', true); $('#sys_splitAtSign').prop('checked', true);
}; };
if (data.result.value['client.X_FORWARDED_FOR'] == "True") { if (data.result.value['client.X_FORWARDED_FOR'] == "True") {
skipping to change at line 2679 skipping to change at line 2703
$('#sys_user_cache_enable').prop('checked', true); $('#sys_user_cache_enable').prop('checked', true);
} else { } else {
$('#sys_user_cache_enable').prop('checked', false); $('#sys_user_cache_enable').prop('checked', false);
} }
var exp = data.result.value['user_lookup_cache.expiration']; var exp = data.result.value['user_lookup_cache.expiration'];
$('#sys_user_cache_expiration').val(exp || 123600); $('#sys_user_cache_expiration').val(exp || 123600);
hide_waiting(); hide_waiting();
}); });
} }
/*
* click event handler for token.last_access
* - will be called when the last_access_check checkbox is pressed
*/
function token_last_access_constrain(){
if ($('#token_last_access_check').is(':checked')) {
$('#token_last_access_entry').prop('disabled', false);
} else {
$('#token_last_access_entry').prop('disabled', true);
}
}
function save_system_config(){ function save_system_config(){
show_waiting(); show_waiting();
// block of config values which are input based // block of config values which are input based
var params = { var params = {
'AutoResyncTimeout': $('#sys_autoResyncTimeout').val(), 'AutoResyncTimeout': $('#sys_autoResyncTimeout').val(),
'mayOverwriteClient': $('#sys_mayOverwriteClient').val(), 'mayOverwriteClient': $('#sys_mayOverwriteClient').val(),
'totp.timeShift': $('#totp_timeShift').val(), 'totp.timeShift': $('#totp_timeShift').val(),
'totp.timeStep': $('#totp_timeStep').val(), 'totp.timeStep': $('#totp_timeStep').val(),
'totp.timeWindow': $('#totp_timeWindow').val(), 'totp.timeWindow': $('#totp_timeWindow').val(),
skipping to change at line 2725 skipping to change at line 2762
autoresync = "True"; autoresync = "True";
} }
var passOUNFound = "False"; var passOUNFound = "False";
if ($('#sys_passOnUserNotFound').is(':checked')) { if ($('#sys_passOnUserNotFound').is(':checked')) {
passOUNFound = "True"; passOUNFound = "True";
} }
var passOUNToken = "False"; var passOUNToken = "False";
if ($('#sys_passOnUserNoToken').is(':checked')) { if ($('#sys_passOnUserNoToken').is(':checked')) {
passOUNToken = "True"; passOUNToken = "True";
} }
/* parse the ui elements to prepare setting the token.last_access config val
ue */
var token_last_access = "False";
if ($('#token_last_access_check').is(':checked')) {
token_last_access = "True";
var token_last_access_entry = $('#token_last_access_entry').val()
if (token_last_access_entry.length > 0) {
token_last_access = token_last_access_entry;
}
}
var realmbox = "False"; var realmbox = "False";
if ($("#sys_realmbox").is(':checked')) { if ($("#sys_realmbox").is(':checked')) {
realmbox = "True"; realmbox = "True";
} }
var client_forward = "False"; var client_forward = "False";
if ($("#sys_forwarded").is(':checked')) { if ($("#sys_forwarded").is(':checked')) {
client_forward = "True"; client_forward = "True";
} }
var client_x_forward = "False"; var client_x_forward = "False";
if ($("#sys_x_forwarded_for").is(':checked')) { if ($("#sys_x_forwarded_for").is(':checked')) {
skipping to change at line 2768 skipping to change at line 2816
'PassOnUserNoToken' : passOUNToken, 'PassOnUserNoToken' : passOUNToken,
'selfservice.realmbox' : realmbox, 'selfservice.realmbox' : realmbox,
'allowSamlAttributes' : allowsaml, 'allowSamlAttributes' : allowsaml,
'client.FORWARDED' : client_forward, 'client.FORWARDED' : client_forward,
'client.X_FORWARDED_FOR' : client_x_forward, 'client.X_FORWARDED_FOR' : client_x_forward,
'allowSamlAttributes' : allowsaml, 'allowSamlAttributes' : allowsaml,
'certificates.use_system_certificates': use_sys_cert, 'certificates.use_system_certificates': use_sys_cert,
'user_lookup_cache.enabled': user_cache_enabled, 'user_lookup_cache.enabled': user_cache_enabled,
'resolver_lookup_cache.enabled': resolver_cache_enabled, 'resolver_lookup_cache.enabled': resolver_cache_enabled,
'user_lookup_cache.enabled': user_cache_enabled, 'user_lookup_cache.enabled': user_cache_enabled,
'token.last_access': token_last_access,
}; };
setSystemConfig(params); setSystemConfig(params);
} }
/** /**
* sends the object containing system config entries * sends the object containing system config entries
* to the server to save them in the database * to the server to save them in the database
* @param {Object.<string, *>} values - the key value pairs representing the con fig to save * @param {Object.<string, *>} values - the key value pairs representing the con fig to save
*/ */
skipping to change at line 3779 skipping to change at line 3828
$('#button_resetcounter').click(function(event){ $('#button_resetcounter').click(function(event){
token_reset(); token_reset();
event.preventDefault(); event.preventDefault();
}); });
$('#button_setexpiration').click(function(e) { $('#button_setexpiration').click(function(e) {
openExpirationDialog(); openExpirationDialog();
}); });
/* register the token.last_access click event handler for the checkbox*/
$("#token_last_access_check").click(
function(event) {
token_last_access_constrain();
}
);
// Set icons for buttons // Set icons for buttons
$('body').enableUIComponents(); $('body').enableUIComponents();
// Info box // Info box
$('.button_info_text').click(function(){ $('.button_info_text').click(function(){
$(this).parent().hide('blind', {}, 500, toggle_close_all_link); $(this).parent().hide('blind', {}, 500, toggle_close_all_link);
}); });
/*************************************************************************** ************** /*************************************************************************** **************
* Realms editing dialog * Realms editing dialog
 End of changes. 5 change blocks. 
0 lines changed or deleted 58 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)