Skip to content

Commit 720cf53

Browse files
committed
Include recaptcha script on reset page.
1 parent aa60608 commit 720cf53

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

resources/themes/pterodactyl/auth/passwords/reset.blade.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,15 @@
8282
</form>
8383
</div>
8484
@endsection
85+
86+
@section('scripts')
87+
@parent
88+
@if(config('recaptcha.enabled'))
89+
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
90+
<script>
91+
function onSubmit(token) {
92+
document.getElementById("loginForm").submit();
93+
}
94+
</script>
95+
@endif
96+
@endsection

0 commit comments

Comments
 (0)