Fix Force HTTPS
This commit is contained in:
parent
f0eea0ea82
commit
b5b92df392
@ -22,6 +22,10 @@ public function register(): void
|
|||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
|
if (env('APP_ENV') !== 'local') {
|
||||||
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
|
||||||
RateLimiter::for('login', function (Request $request) {
|
RateLimiter::for('login', function (Request $request) {
|
||||||
return Limit::perMinute(3)->by($request->ip())->response(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.');
|
return redirect()->back()->with('toManyRequest', 'Harap tunggu 1 menit untuk login ulang.');
|
||||||
|
|||||||
@ -70,17 +70,14 @@
|
|||||||
@enderror
|
@enderror
|
||||||
</div><!-- .form-group -->
|
</div><!-- .form-group -->
|
||||||
{!! ReCaptcha::htmlScriptTagJsApi() !!}
|
{!! ReCaptcha::htmlScriptTagJsApi() !!}
|
||||||
<div
|
{{-- <div class="form-group row mt-1">
|
||||||
class="col-12 d-flex justify-content-center mb-2 @error('g-recaptcha-response') is-invalid
|
<div
|
||||||
@enderror">
|
class="col-md-12 d-flex justify-content-center @error('g-recaptcha-response')
|
||||||
<div> {!! htmlFormSnippet() !!} </div>
|
captcha-error
|
||||||
</div>
|
@enderror">
|
||||||
@if ($errors->has('g-recaptcha-response'))
|
{!! htmlFormSnippet() !!} </div>
|
||||||
<div class="col-12 d-flex justify-content-center">
|
</div> --}}
|
||||||
<small class="text-danger">{{ $errors->first('g-recaptcha-response') }}
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button class="btn btn-lg btn-primary btn-block">Masuk</button>
|
<button class="btn btn-lg btn-primary btn-block">Masuk</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user