Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df26b1af authored by Akhil's avatar Akhil 🙂
Browse files

Send language to hcaptcha component

parent ad985349
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
					@form-submitted="submitCaptchaForm" />
				<HCaptchaForm v-if="showCaptchaForm && captchaProvider === 'hcaptcha'"
					v-model="formData"
					:language="language"
					@form-submitted="submitCaptchaForm" />
				<RecoveryEmailForm v-if="showRecoveryEmailForm" v-model="formData" @form-submitted="submitRecoveryEmailForm" />
				<SuccessSection v-if="showSuccessSection" v-model="formData" />
@@ -58,6 +59,7 @@ export default {
			showCaptchaForm: false,
			showRecoveryEmailForm: false,
			showSuccessSection: false,
			language: loadState(APPLICATION_NAME, 'lang'),
		}
	},
	mounted() {
+4 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
				{{ t(appName,'Captcha Verification') }}
			</h1>
		</div>
		<VueHcaptcha :sitekey="siteKey" @verify="onVerify" />
		<VueHcaptcha :sitekey="siteKey" :language="language" @verify="onVerify" />
	</div>
</template>

@@ -21,6 +21,9 @@ export default {
	components: {
		VueHcaptcha,
	},
	props: {
		language: String,
	},
	data() {
		return {
			siteKey: loadState(APPLICATION_NAME, 'hCaptchaSiteKey'),