⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.94
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
hrms.dev-unit.com
/
resources
/
views
/
auth
/
View File Name :
2fa.blade.php
@extends('layouts.auth') @section('page-title') {{ __('Login') }} @endsection @section('language-bar') @php $languages = App\Models\Utility::languages(); $lang = \App::getLocale('lang'); $LangName = \App\Models\Languages::where('code', $lang)->first(); if (empty($LangName)) { $LangName = new App\Models\Utility(); $LangName->fullName = 'English'; } $settings = App\Models\Utility::settings(); config([ 'captcha.sitekey' => $settings['google_recaptcha_key'], 'captcha.secret' => $settings['google_recaptcha_secret'], 'options' => [ 'timeout' => 30, ], ]); @endphp <div class="lang-dropdown-only-desk"> <li class="dropdown dash-h-item drp-language"> <a class="dash-head-link dropdown-toggle btn" href="#" data-bs-toggle="dropdown" aria-expanded="false"> <span class="drp-text"> {{ ucfirst($LangName->fullName) }} </span> </a> <div class="dropdown-menu dash-h-dropdown dropdown-menu-end"> @foreach ($languages as $code => $language) <a href="{{ route('login', $code) }}" tabindex="0" class="dropdown-item {{ $code == $lang ? 'active' : '' }}"> <span>{{ ucFirst($language) }}</span> </a> @endforeach </div> </li> </div> @endsection @if ($settings['cust_darklayout'] == 'on') <style> .g-recaptcha { filter: invert(1) hue-rotate(180deg) !important; } </style> @endif @section('content') <div class="card-body"> <div> <h2 class="mb-3 f-w-600">{{ __('Login') }}</h2> </div> <div class="custom-login-form"> <form method="POST" action="{{ route('2faVerify') }}" class="needs-validation" novalidate=""> @csrf <input type="hidden" name="2fa_referrer" value="{{ request()->get('2fa_referrer') ?? URL()->current() }}"> <div class="row"> <div class="form-group col-12"> <p>{{ __('Please enter the') }} <strong>{{ __(' OTP') }}</strong> {{ __(' generated on your Authenticator App') }}. <br> {{ __('Ensure you submit the current one because it refreshes every 30 seconds') }}. </p> <label for="one_time_password" class="col-md-12 form-label">{{ __('One Time Password') }}</label> <input id="one_time_password" type="password" class="form-control @if ($errors->any()) is-invalid @endif" name="one_time_password" required="required" autofocus> @if ($errors->any()) <span class="error invalid-email text-danger" role="alert"> @foreach ($errors->all() as $error) <small>{{ $error }}</small> @endforeach </span> @endif </div> <div class="form-group col-12 mb-0"> <div class="d-flex flex-column align-items-center"> <div class="d-flex justify-content-center gap-3"> <button type="submit" class="btn btn-primary"> {{ __('Login') }} </button> <a href="{{ route('logout') }}" class="btn btn-danger text-white" onclick="event.preventDefault(); document.getElementById('frm-logout').submit();"> {{ __('Logout') }} </a> </div> </div> </div> </div> </form> <form id="frm-logout" action="{{ route('logout') }}" method="POST" class="d-none"> {{ csrf_field() }} </form> </div> </div> @endsection