Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

"passfault policies" dropdown menus not loaded when self-hosted #68

Open
fadelkon opened this issue Mar 20, 2018 · 1 comment
Open

"passfault policies" dropdown menus not loaded when self-hosted #68

fadelkon opened this issue Mar 20, 2018 · 1 comment

Comments

@fadelkon
Copy link
Contributor

fadelkon commented Mar 20, 2018

Hey guys,

Could you have a look at my hosted instance? It is running the latest master branch version as date of today, that is, commit b13eaad Based on this commit I only changed the background through CSS, and it failed before doing so. Therefore, there's no chance I broke anything by code.

The observed issue is that in my instance, some js error occurs and the "attacker" and "hasher" lists aren't loaded.

You can see the following error in firefox: ReferenceError: loadSelectCracker is not defined, and Can't find variable: loadSelectCracker in qupzilla/falkon browser. They point to the embedded script in password_policy.html at line 61:

function updateCrackTime(){
	var value = $("#slider").slider('value');
	$("#crackTime").html(time2Crack(scale(value), $('#attacker').val(), $('#hasher').val()));
}

$(document).ready(function (){
→  loadSelectCracker( $('#attacker') ); ←
  loadSelectProtection( $("#hasher") );
}
);

I don't understand this JS code, so I can't debug any further. The parent script passfault.js is used successfully somewhere else, for instance, when describing the matched results. I think this shouldn't be the problem.

The expected behavior would basically be both dropdown menus populating correctly, so that users are able to use the policy slider, just like in the demo site.

Please tell me if I can help trying something else.

Cheers,
fdk

@c-a-m
Copy link
Collaborator

c-a-m commented Mar 20, 2018

Nice find. I get the same thing locally on my box. It looks like I haven't updated the web site in a while. I'll have to find some time after work to get this cleaned up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants