Skip to content

Commit bdf274c

Browse files
uds5501abhinavk96
authored andcommitted
fix: add google re-captcha keys in setting model (#3387)
1 parent c00e254 commit bdf274c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/models/setting.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ export default ModelBase.extend({
9090
adminBillingCity : attr('string'),
9191
adminBillingZip : attr('string'),
9292
adminBillingAdditionalInfo : attr('string'),
93+
isGoogleRecaptchaEnabled : attr('boolean', { defaultValue: false }),
94+
googleRecaptchaSite : attr('string'),
95+
googleRecaptchaSecret : attr('string'),
9396
/**
9497
* Computed properties
9598
*/

app/templates/components/forms/admin/settings/system/captcha-form.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
<label>
2626
{{t 'Google reCAPTCHA Site Key'}}
2727
</label>
28-
{{input type='text' name='google_recaptcha_sitekey' value=settings.googleRecaptchaSitekey}}
28+
{{input type='text' name='google_recaptcha_sitekey' value=settings.googleRecaptchaSite}}
2929
</div>
3030
<div class="field">
3131
<label>
3232
{{t 'Google reCAPTCHA Secret Key'}}
3333
</label>
34-
{{input type='text' name='google_recaptcha_secretkey' value=settings.googleRecaptchaSecretkey}}
34+
{{input type='text' name='google_recaptcha_secretkey' value=settings.googleRecaptchaSecret}}
3535
</div>
3636
{{/if}}

0 commit comments

Comments
 (0)