Skip to content

Commit

Permalink
Rename switch variable for use zxcvbn
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro committed Jan 24, 2016
1 parent f3e4ba0 commit 6ddfe45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function password_strength_setup($event)
);
$event['lang_set_ext'] = $lang_set_ext;

$this->template->assign_var('S_PWS_ZXCVBN', (bool) $this->config->offsetGet('password_strength_type'));
$this->template->assign_var('S_USE_ZXCVBN', (bool) $this->config->offsetGet('password_strength_type'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions styles/all/template/password_strength.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
function trigger() {
var input = $passField.val();
var score =
{%- if S_PWS_ZXCVBN -%}
{%- if S_USE_ZXCVBN -%}
zxcvbn(input).score + (input.length > 0);
{%- else -%}
Math.max(complexity(input), +(input.length > 0));
Expand All @@ -29,7 +29,7 @@
$passField.bind('keyup blur', trigger).after($resultMsg);
});
};
{% if S_PWS_ZXCVBN %}
{% if S_USE_ZXCVBN %}
$.ajax({
url: '{{ ROOT_PATH }}ext/vse/passwordstrength/lib/zxcvbn/zxcvbn.js',
dataType: 'script',
Expand Down

0 comments on commit 6ddfe45

Please sign in to comment.