diff --git a/resources/js/components/FormToggle.vue b/resources/js/components/FormToggle.vue
index dfa0709c..5a4a43a4 100644
--- a/resources/js/components/FormToggle.vue
+++ b/resources/js/components/FormToggle.vue
@@ -2,7 +2,10 @@
@@ -55,16 +58,6 @@
type: Boolean,
default: false
}
- },
-
- methods: {
-
- setField(value) {
- if( !this.isDisabled ) {
- this.form[this.fieldName] = value
- }
- }
-
}
}
\ No newline at end of file
diff --git a/resources/js/views/twofaccounts/Create.vue b/resources/js/views/twofaccounts/Create.vue
index a16d208a..5e0adbe0 100644
--- a/resources/js/views/twofaccounts/Create.vue
+++ b/resources/js/views/twofaccounts/Create.vue
@@ -159,13 +159,27 @@
imageLink: '',
qrcode: null,
}),
- otpTypes: ['totp', 'hotp'],
- digitsChoices: [6,7,8,9,10],
+ otpTypes: [
+ { text: 'TOTP', value: 'totp' },
+ { text: 'HOTP', value: 'hotp' },
+ ],
+ digitsChoices: [
+ { text: 6, value: 6 },
+ { text: 7, value: 7 },
+ { text: 8, value: 8 },
+ { text: 9, value: 9 },
+ { text: 10, value: 10 },
+ ],
secretFormats: [
{ text: this.$t('twofaccounts.forms.plain_text'), value: 0 },
{ text: 'Base32', value: 1 }
],
- algorithms: ['sha1', 'sha256', 'sha512', 'md5'],
+ algorithms: [
+ { text: 'sha1', value: 'sha1' },
+ { text: 'sha256', value: 'sha256' },
+ { text: 'sha512', value: 'sha512' },
+ { text: 'md5', value: 'md5' },
+ ],
}
},
diff --git a/resources/js/views/twofaccounts/Edit.vue b/resources/js/views/twofaccounts/Edit.vue
index 76708b1b..db480885 100644
--- a/resources/js/views/twofaccounts/Edit.vue
+++ b/resources/js/views/twofaccounts/Edit.vue
@@ -132,13 +132,27 @@
totpPeriod: null,
imageLink: '',
}),
- otpTypes: ['totp', 'hotp'],
- digitsChoices: [6,7,8,9,10],
+ otpTypes: [
+ { text: 'TOTP', value: 'totp' },
+ { text: 'HOTP', value: 'hotp' },
+ ],
+ digitsChoices: [
+ { text: 6, value: 6 },
+ { text: 7, value: 7 },
+ { text: 8, value: 8 },
+ { text: 9, value: 9 },
+ { text: 10, value: 10 },
+ ],
secretFormats: [
{ text: this.$t('twofaccounts.forms.plain_text'), value: 0 },
{ text: 'Base32', value: 1 }
],
- algorithms: ['sha1', 'sha256', 'sha512', 'md5'],
+ algorithms: [
+ { text: 'sha1', value: 'sha1' },
+ { text: 'sha256', value: 'sha256' },
+ { text: 'sha512', value: 'sha512' },
+ { text: 'md5', value: 'md5' },
+ ],
}
},