Sha256: 1d33194af7907d3f4e467840bacf09f5985e3da85e9077d6698e3e55ebf78d89
Contents?: true
Size: 768 Bytes
Versions: 56
Compression:
Stored size: 768 Bytes
Contents
//////////////////// //STORE MODULE: Store password with session storage //////////////////// PRESENCE.STORE = (function(P,$,undefined){ var init = function(){ } var storePassword = function() { //Dont store password if cookie authentication is enable if (PRESENCE.XMPPClient.authByCookie()) { return } if (window.sessionStorage) { if (($("#user_password").length==1)&&($("#user_password").val()!="")){ sessionStorage.setItem("ss_user_pass", $('#user_password').val()); } else if (($("#password").length==1)&&($("#password").val()!="")){ sessionStorage.setItem("ss_user_pass", $('#password').val()); } } } return { init: init, storePassword: storePassword }; }) (PRESENCE, jQuery);
Version data entries
56 entries across 56 versions & 2 rubygems