Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2017-05-18 04:34:29 +0300
committerChaoyi Zha <summermontreal@gmail.com>2017-05-18 04:34:29 +0300
commit53128c11b4b2f7ca804cb9b9dfd66a34ecf1752b (patch)
treedc826e41393e094c6e5ef6a03671fa75bfa07350
parent6e28bf83942382ab81bd8b45b49eecb8995a3d40 (diff)
Load reCAPTCHA script only if it is enabled for the registration form
-rw-r--r--resources/views/signup.blade.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/views/signup.blade.php b/resources/views/signup.blade.php
index d0bf3ea..1bba206 100644
--- a/resources/views/signup.blade.php
+++ b/resources/views/signup.blade.php
@@ -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