fix https login

This commit is contained in:
2016-03-19 13:09:26 +01:00
parent 76265e78e1
commit ddd2968d23
2 changed files with 5 additions and 3 deletions

5
jquery/common.js vendored Normal file → Executable file
View File

@@ -490,8 +490,9 @@ function debug(text, bQuery)
function getLoginToken(sPass)
{
if(!window.location.origin) window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
return md5(sPass+window.location.origin+window.location.pathname);
//if(!window.location.origin) window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
var sLocation = (!window.location.origin)?"http://"+window.location.hostname+(window.location.port?':'+window.location.port:''):window.location.origin.replace('https://', 'http://');
return md5(sPass+sLocation+window.location.pathname);
}
function md5(str)