Skip to content

Commit 8c9beba

Browse files
committed
fix password policy issue
1 parent a0c5794 commit 8c9beba

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sass/popup.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ svg {
718718
text-align: right;
719719
margin: 5px;
720720
margin-bottom: 20px;
721+
font-size: 12px;
721722
}
722723

723724
.no-insight {

src/components/Popup/SetPasswordPage.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export default Vue.extend({
3636
return this.$store.state.menu.enforcePassword;
3737
},
3838
passwordPolicy: function () {
39+
if (!this.$store.state.menu.passwordPolicy) {
40+
return null;
41+
}
42+
3943
try {
4044
return new RegExp(this.$store.state.menu.passwordPolicy);
4145
} catch {
@@ -64,6 +68,7 @@ export default Vue.extend({
6468
}
6569
6670
if (this.passwordPolicy && !this.passwordPolicy.test(this.phrase)) {
71+
console.log(this.passwordPolicy);
6772
const hint =
6873
this.passwordPolicyHint || this.i18n.password_policy_default_hint;
6974
this.$store.commit("notification/alert", hint);

0 commit comments

Comments
 (0)