diff --git a/src/components/Popup/AddAccountPage.vue b/src/components/Popup/AddAccountPage.vue index 72e7e4f73..d44738dda 100644 --- a/src/components/Popup/AddAccountPage.vue +++ b/src/components/Popup/AddAccountPage.vue @@ -57,6 +57,11 @@ export default Vue.extend({ async addNewAccount() { this.newAccount.secret = this.newAccount.secret.replace(/ /g, ""); + if (this.newAccount.secret.length < 16) { + this.$store.commit("notification/alert", this.i18n.errorsecret); + return; + } + if ( !/^[a-z2-7]+=*$/i.test(this.newAccount.secret) && !/^[0-9a-f]+$/i.test(this.newAccount.secret)