1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 15:11:40 +02:00

Load reCAPTCHA script only if it is enabled for the registration form

This commit is contained in:
Chaoyi Zha 2017-05-17 21:34:29 -04:00
parent 6e28bf8394
commit 53128c11b4

View File

@ -43,5 +43,7 @@
@endsection
@section('js')
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
@if (env('POLR_ACCT_CREATION_RECAPTCHA'))
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
@endif
@endsection