add recaptcha option
This commit is contained in:
@@ -6,6 +6,14 @@
|
||||
<title>register</title>
|
||||
<link rel="icon" @if(custom_favicon && custom_favicon.length > 0)href="{{ custom_favicon }}"@else type="image/gif" href="/s/img/favicon.gif"@endif />
|
||||
<link href="/s/css/f0ckm.css" rel="stylesheet" />
|
||||
@if(recaptcha_enabled)
|
||||
<script>
|
||||
function onRecaptchaPageReady() {
|
||||
grecaptcha.render('page-register-recaptcha', { sitekey: '{{ recaptcha_site_key }}', theme: 'dark' });
|
||||
}
|
||||
</script>
|
||||
<script src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaPageReady&render=explicit" async defer></script>
|
||||
@endif
|
||||
</head>
|
||||
<body type="login">
|
||||
<form class="login-form" method="post" action="/register" novalidate>
|
||||
@@ -33,6 +41,9 @@
|
||||
<input type="checkbox" id="tos-page" name="tos" required />
|
||||
<label for="tos-page">@if(private_society){{ t('auth.tos_private_simple') }}@else{{ t('auth.tos_public') }} <a href="/terms" target="_blank" style="color: var(--accent); text-decoration: underline;">{{ t('auth.tos_terms') }}</a>, <a href="/rules" target="_blank" style="color: var(--accent); text-decoration: underline;">{{ t('auth.tos_rules') }}</a> {{ t('auth.tos_age') }}@endif</label>
|
||||
</p>
|
||||
@if(recaptcha_enabled)
|
||||
<div id="page-register-recaptcha" style="margin: 10px 0;"></div>
|
||||
@endif
|
||||
<input type="submit" value="{{ t('auth.register_title') }}" />
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user