Fix Force HTTPS

This commit is contained in:
Alfin Afif 2025-09-09 11:01:11 +07:00
parent f0eea0ea82
commit b5b92df392
3 changed files with 4236 additions and 11 deletions

View File

@ -22,6 +22,10 @@ public function register(): void
*/
public function boot(): void
{
if (env('APP_ENV') !== 'local') {
URL::forceScheme('https');
}
RateLimiter::for('login', function (Request $request) {
return Limit::perMinute(3)->by($request->ip())->response(function (Request $request) {
return redirect()->back()->with('toManyRequest', 'Harap tunggu 1 menit untuk login ulang.');

View File

@ -70,17 +70,14 @@
@enderror
</div><!-- .form-group -->
{!! ReCaptcha::htmlScriptTagJsApi() !!}
<div
class="col-12 d-flex justify-content-center mb-2 @error('g-recaptcha-response') is-invalid
@enderror">
<div> {!! htmlFormSnippet() !!} </div>
</div>
@if ($errors->has('g-recaptcha-response'))
<div class="col-12 d-flex justify-content-center">
<small class="text-danger">{{ $errors->first('g-recaptcha-response') }}
</small>
</div>
          @endif
{{-- <div class="form-group row mt-1">
<div
class="col-md-12 d-flex justify-content-center @error('g-recaptcha-response')
captcha-error
@enderror">
{!! htmlFormSnippet() !!} </div>
</div> --}}
<div class="form-group">
<button class="btn btn-lg btn-primary btn-block">Masuk</button>
</div>

File diff suppressed because it is too large Load Diff