From 3c726defa6bea48f1a6202841b5cebe516bddde6 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 12 Mar 2021 00:09:57 +0000 Subject: [PATCH] --- ayanova/src/views/home-security.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ayanova/src/views/home-security.vue b/ayanova/src/views/home-security.vue index ad672fdd..0ff0729b 100644 --- a/ayanova/src/views/home-security.vue +++ b/ayanova/src/views/home-security.vue @@ -26,10 +26,17 @@ :label="$ay.t('AuthEnterPin')" :error-messages="form().serverErrors(this, 'pin')" ref="pin" - @input="fieldValueChanged('mapUrlTemplate')" + @input="fieldValueChanged('pin')" data-cy="tfaPin" > + + + + {{ + $ay.t("OK") + }} + @@ -157,7 +164,8 @@ export default { window.$gz.form.fieldValueChanged(this, ref); } }, - async submit() { + + async authenticate() { let vm = this; if (vm.canSave) { vm.formState.loading = true; @@ -168,7 +176,7 @@ export default { //clear any errors vm might be around from previous submit window.$gz.form.deleteAllErrorBoxErrors(vm); try { - let res = await window.$gz.api.upsert(url, vm.obj); + let res = await window.$gz.api.upsert(url, vm.pin); if (res.error) { vm.formState.serverError = res.error;