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

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

@fadelkon

Description

@fadelkon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions