diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-01-14 13:45:00 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-01-14 13:45:00 +0000 |
| commit | 662afe973a72efc17e61fd4c071ed985bfe4bf6b (patch) | |
| tree | bbaab78908dd331640c372e1fad7cfb6e5c5e734 /src/components/registration | |
| parent | ac90d4c5329c513d73871b3a2476761672453775 (diff) | |
Fix #750 , fix error messages and captcha resetting
Diffstat (limited to 'src/components/registration')
| -rw-r--r-- | src/components/registration/registration.js | 3 | ||||
| -rw-r--r-- | src/components/registration/registration.vue | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 57f3caf0..ace8cc7c 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -63,7 +63,8 @@ const registration = { await this.signUp(this.user) this.$router.push({ name: 'friends' }) } catch (error) { - console.warn('Registration failed: ' + error) + console.warn('Registration failed: ', error) + this.setCaptcha() } } }, diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue index 222b67a8..fdbda007 100644 --- a/src/components/registration/registration.vue +++ b/src/components/registration/registration.vue @@ -170,7 +170,7 @@ <label class="form--label" for="captcha-label" - >{{ $t('captcha') }}</label> + >{{ $t('registration.captcha') }}</label> <template v-if="['kocaptcha', 'native'].includes(captcha.type)"> <img |
