From bde543e86c84d87888d645ac6d2fac7f205d5698 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Thu, 31 Mar 2022 21:52:28 +0000 Subject: [PATCH] [account] don't show captcha until email has been modified --- components/Account.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/Account.vue b/components/Account.vue index 85a83b318..77996478a 100644 --- a/components/Account.vue +++ b/components/Account.vue @@ -97,8 +97,8 @@
- -
+ +
@@ -208,6 +208,7 @@ gravatar, + showCaptcha: false, captchaToken: null, universalDomains: process.env.ALL_LOCALES_URLS.split(',').filter(x => x !== process.env.BASE_URL), @@ -353,6 +354,13 @@ return this.email && this.captchaToken; } }, + watch: { + email(v) { + if (v !== this.$user().email) { + this.showCaptcha = true; + } + } + } }