mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add support instructions
This commit is contained in:
parent
7446464d6c
commit
506fe0fe94
@ -64,8 +64,20 @@
|
||||
</ds-space>
|
||||
</ds-form>
|
||||
<ds-text v-else>
|
||||
<sweetalert-icon :icon="changePasswordResult" />
|
||||
{{ changePasswordResultMessage }}
|
||||
<template v-if="changePasswordResult === 'success'">
|
||||
<sweetalert-icon icon="success" />
|
||||
<ds-text>
|
||||
{{ $t(`verify-code.form.change-password.success`) }}
|
||||
</ds-text>
|
||||
</template>
|
||||
<template v-else>
|
||||
<sweetalert-icon icon="error" />
|
||||
<ds-text align="left">
|
||||
{{ $t(`verify-code.form.change-password.error`) }}
|
||||
{{ $t('verify-code.form.change-password.help') }}
|
||||
</ds-text>
|
||||
<a href="mailto:support@human-connection.org">support@human-connection.org</a>
|
||||
</template>
|
||||
</ds-text>
|
||||
</template>
|
||||
</ds-space>
|
||||
@ -132,12 +144,6 @@ export default {
|
||||
changePasswordResult: null,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
changePasswordResultMessage() {
|
||||
if (!this.changePasswordResult) return ''
|
||||
return this.$t(`verify-code.form.change-password.${this.changePasswordResult}`)
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
async handleInput() {
|
||||
this.disabled = true
|
||||
@ -161,9 +167,8 @@ export default {
|
||||
const {
|
||||
data: { resetPassword },
|
||||
} = await this.$apollo.mutate({ mutation, variables })
|
||||
const changePasswordResult = resetPassword ? 'success' : 'error'
|
||||
this.changePasswordResult = changePasswordResult
|
||||
this.$emit('change-password-result', changePasswordResult)
|
||||
this.changePasswordResult = resetPassword ? 'success' : 'error'
|
||||
this.$emit('change-password-result', this.changePasswordResult)
|
||||
this.verification.formData = {
|
||||
code: '',
|
||||
email: '',
|
||||
|
||||
@ -29,7 +29,8 @@
|
||||
"next": "Weiter",
|
||||
"change-password":{
|
||||
"success": "Änderung des Passworts war erfolgreich",
|
||||
"error": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?"
|
||||
"error": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?",
|
||||
"help": "Falls Probleme auftreten, schreib uns gerne eine Mail an:"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -29,7 +29,8 @@
|
||||
"next": "Continue",
|
||||
"change-password": {
|
||||
"success": "Changing your password was successful",
|
||||
"error": "Changing your password failed. Maybe the security code was not correct?"
|
||||
"error": "Changing your password failed. Maybe the security code was not correct?",
|
||||
"help": "In case of problems, feel free to ask for help by sending us a mail to:"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user