refactor: refactored auth strings
This commit is contained in:
parent
e0844a7a2b
commit
6338b3ef8b
@ -17,15 +17,15 @@
|
||||
<form action="{{ route('verify2FA') }}" method="POST" id="verify">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<label for="name" class="sr-only">{{__('messages.2fa_sronly')}}</label>
|
||||
<input type="text" name="otp" id="name" class="form-control" placeholder="{{__('messages.profile.2fa_send_code_s')}}">
|
||||
<label for="name" class="sr-only">{{__('Two-factor secret code (You can find this on Google Authenticator or the app you chose during setup)')}}</label>
|
||||
<input type="text" name="otp" id="name" class="form-control" placeholder="{{__('2FA Code (ex. 41351)')}}">
|
||||
</div>
|
||||
<input name="register" id="register" class="btn btn-block login-btn mb-4" type="submit" value="{{__('messages.profile.2fa_send_code')}}">
|
||||
<input name="register" id="register" class="btn btn-block login-btn mb-4" type="submit" value="{{__('Send 2FA Code')}}">
|
||||
</form>
|
||||
<p class="login-card-footer-text">{{__('messages.2fa_lostcode')}} <a href="{{ route('logout') }}" class="text-reset">{{__('messages.2fa_cancel_login')}}</a></p>
|
||||
<p class="login-card-footer-text">{{__("Don't know the code?")}} <a href="{{ route('logout') }}" class="text-reset">{{__('Cancel sign in (sign out)')}}</a></p>
|
||||
<nav class="login-card-footer-nav">
|
||||
<a href="#!">{{__('messages.terms')}}</a>
|
||||
<a href="#!">{{__('messages.ppolicy')}}</a>
|
||||
<a href="#!">{{__('Terms of Service')}}</a>
|
||||
<a href="#!">{{__('Privacy Policy')}}</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -27,30 +27,32 @@
|
||||
<li>staffmember@example.com</li>
|
||||
<li>enduser@example.com</li>
|
||||
</ul>
|
||||
<p>{{ __('The password is ":password" for all accounts.', ['password' => 'password']) }}</p>
|
||||
<p>{{ __('The password is ":demoPassword" for all accounts.', ['demoPassword' => 'password']) }}</p>
|
||||
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email" class="sr-only">{{__('messages.contactlabel_email')}}</label>
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="Email address">
|
||||
<label for="email" class="sr-only">{{__('Email')}}</label>
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="{{ __('Email address') }}">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label for="password" class="sr-only">{{__('messages.password')}}</label>
|
||||
<label for="password" class="sr-only">{{__('Password')}}</label>
|
||||
<input type="password" name="password" id="password" class="form-control" placeholder="***********">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label for="remember">{{__('messages.remember_me')}}</label>
|
||||
<label for="remember">{{__('Remember me')}}</label>
|
||||
<input type="checkbox" name="remember" id="remember" />
|
||||
</div>
|
||||
<input name="login" id="login" class="btn btn-block login-btn mb-4" type="submit" value="{{__('messages.login')}}">
|
||||
<input name="login" id="login" class="btn btn-block login-btn mb-4" type="submit" value="{{__('Sign in')}}">
|
||||
</form>
|
||||
<a href="{{ route('password.request') }}" class="forgot-password-link">{{__('messages.forgot_pw')}}</a>
|
||||
<p class="login-card-footer-text">{{__('messages.no_acc')}} <a href="{{ route('register') }}" class="text-reset">{{__('messages.register_cta')}}</a></p>
|
||||
<a href="{{ route('password.request') }}" class="forgot-password-link">{{__('Forgot password?')}}</a>
|
||||
<p class="login-card-footer-text">{{__("Don't have an account?")}} <a href="{{ route('register') }}" class="text-reset">{{__('Sign up here')}}</a></p>
|
||||
<nav class="login-card-footer-nav">
|
||||
<a href="#!">{{__('messages.terms')}}</a>
|
||||
<a href="#!">{{__('messages.ppolicy')}}</a>
|
||||
<a href="#!">{{__('Terms of Service')}}</a>
|
||||
<a href="#!">{{__('Privacy Policy')}}</a>
|
||||
<a href="#!">{{__('Community Guidelines')}}</a>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -23,16 +23,18 @@
|
||||
<form action="{{ route('password.email') }}" method="POST" id="loginForm">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<label for="email" class="sr-only">{{__('messages.contactlabel_email')}}</label>
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="Email address">
|
||||
<label for="email" class="sr-only">{{__('Email address')}}</label>
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="{{ __('Email address') }}">
|
||||
</div>
|
||||
<input name="reset" id="reset" class="btn btn-block login-btn mb-4" type="submit" value="{{__('Send reset instructions')}}">
|
||||
<a class="text-decoration-none" href="{{ route('login') }}"><button type="button" class="btn btn-outline-info btn-block btn-sm mb-4">{{ __('Nevermind, I remembered my password') }}</button></a>
|
||||
</form>
|
||||
<a href="{{ route('login') }}">{{__('Back to login')}}</a>
|
||||
<nav class="login-card-footer-nav">
|
||||
<a href="#!">{{__('messages.terms')}}</a>
|
||||
<a href="#!">{{__('messages.ppolicy')}}</a>
|
||||
<a href="#!">{{__('Terms of Service')}}</a>
|
||||
<a href="#!">{{__('Privacy Policy')}}</a>
|
||||
<a href="#!">{{__('Community Guidelines')}}</a>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -68,10 +68,12 @@
|
||||
|
||||
<input name="reset" id="reset" class="btn btn-block login-btn mb-4" type="submit" value="{{__('Change password')}}">
|
||||
</form>
|
||||
<a href="{{ route('login') }}">{{__('Back to login')}}</a>
|
||||
<a href="{{ route('login') }}">{{__('Back to sign in')}}</a>
|
||||
<nav class="login-card-footer-nav">
|
||||
<a href="#!">{{__('messages.terms')}}</a>
|
||||
<a href="#!">{{__('messages.ppolicy')}}</a>
|
||||
<a href="#!">{{__('Terms of Service')}}</a>
|
||||
<a href="#!">{{__('Privacy Policy')}}</a>
|
||||
<a href="#!">{{__('Community Guidelines')}}</a>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,34 +13,34 @@
|
||||
<div class="brand-wrapper">
|
||||
<img src="{{ config('adminlte.logo_img') }}" alt="logo" class="logo rounded mr-2">{{ config('adminlte.logo') }}
|
||||
</div> <!-- main content start -->
|
||||
<p class="login-card-description">{{__('messages.register_acc')}}</p>
|
||||
<p class="login-card-description">{{__('Sign up for an account')}}</p>
|
||||
|
||||
@if(\App\Facades\Options::getOption('pw_security_policy') !== 'off')
|
||||
|
||||
<div class="alert alert-warning alert-dismissible">
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
||||
<p><b>{{__('messages.pwsec.line1')}}</b></p>
|
||||
<p>{{__('messages.pwsec.line2')}}</p>
|
||||
<p><b>{{__('Basic password security')}}</b></p>
|
||||
<p>{{__("For your security, we implement strict password policies. It's also advisable to let your password manager or browser generate and save passwords for you (if it's a private device).")}}</p>
|
||||
|
||||
<p>{{__('messages.pwsec.line3')}} </p>
|
||||
<p>{{__('Passwords must be a combination of:')}} </p>
|
||||
<ul>
|
||||
@switch(\App\Facades\Options::getOption('pw_security_policy'))
|
||||
|
||||
@case('low')
|
||||
<li>A minimum of 10 characters</li>
|
||||
<li>{{ __('A minimum of 10 characters') }}</li>
|
||||
@break
|
||||
|
||||
@case('medium')
|
||||
<li>A minimum of 12 characters;</li>
|
||||
<li>At least one special character;</li>
|
||||
<li>Lower case and upper case characters</li>
|
||||
<li>{{ __('A minimum of 12 characters;') }}</li>
|
||||
<li>{{ __('At least one special character;') }}</li>
|
||||
<li>{{ __('Lower case and upper case characters') }}</li>
|
||||
@break
|
||||
|
||||
@case('high')
|
||||
<li>A minimum of 20 characters;</li>
|
||||
<li>At least one special character;</li>
|
||||
<li>Lower case and upper case characters</li>
|
||||
<li>At least one numerical character</li>
|
||||
<li>{{ __('A minimum of 20 characters;') }}</li>
|
||||
<li>{{ __('At least one special character;') }}</li>
|
||||
<li>{{ __('Lower case and upper case characters') }}</li>
|
||||
<li>{{ __('At least one numerical character') }}</li>
|
||||
@break
|
||||
|
||||
@endswitch
|
||||
@ -54,43 +54,44 @@
|
||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i>{{ __('Warning') }}</p>
|
||||
<p>{{ __('Do not use real credentials here. The application is in demo mode. Additionally, the database is wiped every six hours.') }}</p>
|
||||
|
||||
<p>{{ __('Also note: If a game license is required to sign up, you may find valid MC usernames at NameMC') }}</p>
|
||||
<p>{{ __("Also note: If a game license is required to sign up, you may find valid MC usernames at NameMC. No special validation is performed other than contacting Mojang's authentication servers to verify the username's existence, therefore, you can use any username for testing purposes.") }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form action="{{ route('register') }}" method="POST" id="registerForm">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<label for="name" class="sr-only">{{__('messages.contactlabel_name')}}</label>
|
||||
<input type="text" name="name" id="name" class="form-control" placeholder="{{__('messages.contactlabel_name')}}">
|
||||
<label for="name" class="sr-only">{{__('Name')}}</label>
|
||||
<input type="text" name="name" id="name" class="form-control" placeholder="{{__('Name')}}">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label for="email" class="sr-only">{{__('messages.contactlabel_email')}}</label>
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="{{__('messages.contactlabel_email')}}">
|
||||
<label for="email" class="sr-only">{{__('Email address')}}</label>
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="{{__('Email address')}}">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label for="password" class="sr-only">{{__('messages.password')}}</label>
|
||||
<input type="password" name="password" id="password" class="form-control" placeholder="{{__('messages.password')}}">
|
||||
<label for="password" class="sr-only">{{__('Password')}}</label>
|
||||
<input type="password" name="password" id="password" class="form-control" placeholder="{{__('Password')}}">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label for="passwordc" class="sr-only">{{__('messages.sronly_confirmpassword')}}</label>
|
||||
<input type="password" id="passwordc" name="password_confirmation" class="form-control" placeholder="{{__('messages.sronly_confirmpassword')}}" />
|
||||
<label for="passwordc" class="sr-only">{{__('Confirm Password')}}</label>
|
||||
<input type="password" id="passwordc" name="password_confirmation" class="form-control" placeholder="{{__('Confirm Password')}}" />
|
||||
</div>
|
||||
|
||||
|
||||
@if(\App\Facades\Options::getOption('requireGameLicense') && \App\Facades\Options::getOption('currentGame') == 'MINECRAFT')
|
||||
<div class="form-group mt-5">
|
||||
<label for="mcusername" class="sr-only">{{__('messages.sronly_mcusername')}}</label>
|
||||
<input type="text" name="uuid" class="form-control" id="mcusername" placeholder="{{__('messages.sronly_mcusername')}}" />
|
||||
<label for="mcusername" class="sr-only">{{__('Minecraft Username (Premium)')}}</label>
|
||||
<input type="text" name="uuid" class="form-control" id="mcusername" placeholder="{{__('Minecraft Username (Premium)')}}" />
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<input name="register" id="register" class="btn btn-block login-btn mb-4" type="submit" value="{{__('messages.register_txt')}}">
|
||||
<input name="register" id="register" class="btn btn-block login-btn mb-4" type="submit" value="{{__('Sign up')}}">
|
||||
</form>
|
||||
<p class="login-card-footer-text">{{__('messages.have_account')}} <a href="{{ route('login') }}" class="text-reset">{{__('messages.login_here')}}</a></p>
|
||||
<p class="login-card-footer-text">{{__('Have an account with us?')}} <a href="{{ route('login') }}" class="text-reset">{{__('Sign in here')}}</a></p>
|
||||
<nav class="login-card-footer-nav">
|
||||
<a href="#!">{{__('messages.terms')}}</a>
|
||||
<a href="#!">{{__('messages.ppolicy')}}</a>
|
||||
<a href="#!">{{__('Terms of Service')}}</a>
|
||||
<a href="#!">{{__('Privacy Policy')}}</a>
|
||||
<a href="#!">{{__('Community Guidelines')}}</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -32,6 +32,8 @@
|
||||
<nav class="login-card-footer-nav">
|
||||
<a href="#!">{{__('messages.terms')}}</a>
|
||||
<a href="#!">{{__('messages.ppolicy')}}</a>
|
||||
<a href="#!">{{__('Community Guidelines')}}</a>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ \Illuminate\Support\Facades\App::getLocale() }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
<li class="d-inline-block">
|
||||
|
||||
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc"><i class="fas fa-code-branch"></i> Gitea</a>
|
||||
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc/issues"><i class="fas fa-bug"></i> Issue Tracker</a>
|
||||
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc"><i class="fas fa-code-branch"></i> {{ __('Gitea') }}</a>
|
||||
<a class="mr-3" href="https://github.com/GamesClubOficial/rbrecruiter-gc/issues"><i class="fas fa-bug"></i> {{ __('Issue Tracker') }}</a>
|
||||
|
||||
</li>
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
<div class="col-4 d-inline-block">
|
||||
|
||||
<p>© Miguel N. {{ \Carbon\Carbon::now()->year }}— <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU General Public License</a></p>
|
||||
<p>© Miguel N. {{ \Carbon\Carbon::now()->year }}— <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">{{ __('GNU General Public License') }}</a></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<!-- Copyright - DO NOT REMOVE WITHOUT PERMISSION -->
|
||||
<div class="footer-copyright text-center py-3">
|
||||
<a href="{{ config('app.url') }}"> {{ config('app.name') . ' ' . config('app.release') }} © 2019-{{ now()->year }} - {{__('messages.footer_copy')}}. Took {{ round(microtime(true) - LARAVEL_START, 3) }} seconds.</a>
|
||||
<a href="{{ config('app.url') }}"> {{ config('app.name') . ' ' . config('app.release') }} © {{ now()->year }} - {{__('messages.footer_copy')}}. Took {{ round(microtime(true) - LARAVEL_START, 3) }} seconds.</a>
|
||||
</div>
|
||||
<!-- Copyright -->
|
||||
<!-- GNU General Public License (https://www.gnu.org/licenses/gpl-3.0.en.html) Built by Miguel N. -->
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!doctype HTML>
|
||||
|
||||
<html lang="en">
|
||||
<html lang="{{ App::getLocale() }}">
|
||||
|
||||
<head>
|
||||
|
||||
@ -25,8 +25,8 @@
|
||||
|
||||
|
||||
<title>{{config('app.name')}} | {{ __('Home') }}</title>
|
||||
<meta name="title" content="Games Club Oficial | Página Inicial">
|
||||
<meta name="description" content="Games Club Oficial - Onde sua diversão acontece!">
|
||||
<meta name="title" content="Games Club Oficial | {{ __('Página Inicial') }}">
|
||||
<meta name="description" content="{{ __('Games Club Oficial - Onde sua diversão acontece!') }}">
|
||||
|
||||
|
||||
<!-- Font Awesome -->
|
||||
@ -79,23 +79,23 @@
|
||||
<ul class="navbar-nav ml-auto float-right">
|
||||
@guest
|
||||
<li class="nav-item">
|
||||
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('login')}}'"><i class="fas fa-sign-in-alt"></i> {{__('messages.login')}}</button>
|
||||
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('login')}}'"><i class="fas fa-sign-in-alt"></i> {{__('Sign in')}}</button>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('register')}}'"><i class="fas fa-plus"></i> {{__('messages.register')}}</button>
|
||||
<button class="btn btn-info" type="button" onclick="window.location.href='{{route('register')}}'"><i class="fas fa-plus"></i> {{__('Register')}}</button>
|
||||
</li>
|
||||
@endguest
|
||||
|
||||
@auth
|
||||
<li class="nav-item">
|
||||
<button type="button" class="btn btn-info" onclick="window.location.href='{{route('dashboard')}}'">{{__('messages.dashboard')}}</button>
|
||||
<button type="button" class="btn btn-info" onclick="window.location.href='{{route('dashboard')}}'">{{__('Dashboard')}}</button>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<form method="POST" action="{{route('logout')}}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-danger"><i class="fa fa-power-off"></i>{{__('messages.logout')}}</button>
|
||||
<button type="submit" class="btn btn-danger"><i class="fa fa-power-off"></i>{{__('Sign out')}}</button>
|
||||
</form>
|
||||
</li>
|
||||
@endauth
|
||||
@ -145,7 +145,7 @@
|
||||
<img class="d-inline mb-4" src="{{ asset('img/500.svg') }}" width="350px" alt="500 illustration">
|
||||
|
||||
<h1>{{ __('500 - Internal Server Error') }}</h1>
|
||||
<p>{{ __('Whelp! It looks like our servers went up in flames. Don\'t worry, it\'s not your fault. Our developers have been notified & are already extinguishing the flames and repairing the damage. ') }}</p>
|
||||
<p>{{ __("Whelp! It looks like our servers went up in flames. Don't worry, it's not your fault. Our developers have been notified & are already extinguishing the flames and repairing the damage. ") }}</p>
|
||||
@break;
|
||||
|
||||
@case(401)
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div class="col-6 offset-5">
|
||||
|
||||
|
||||
<img src="/img/403.svg" width="150px" alt="Access denied" />
|
||||
<img src="/img/403.svg" width="150px" alt="{{ __('Image Describing Access Denied') }}" />
|
||||
|
||||
|
||||
</div>
|
||||
@ -16,12 +16,12 @@
|
||||
<div class="col">
|
||||
|
||||
<div class="alert alert-{{$type}}">
|
||||
<h4><i class="fas fa-user-lock"></i> {{__('messages.component_accessdenied')}}</h4>
|
||||
<h4><i class="fas fa-user-lock"></i> {{__('Access Denied')}}</h4>
|
||||
<p>
|
||||
{{__('messages.component_nopermission')}}
|
||||
{{__("We're sorry, but you do not have sufficient permission to access this web page.")}}
|
||||
</p>
|
||||
<p>
|
||||
{{__('messages.component_contact')}}
|
||||
{{__('Please contact your administrator if you believe this was in error.')}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -31,10 +31,10 @@
|
||||
@else
|
||||
@extends('adminlte::page')
|
||||
|
||||
@section('title', 'Raspberry Network | Access Denied')
|
||||
@section('title', config('app.name') . ' | ' . __('Access Denied'))
|
||||
|
||||
@section('content_header')
|
||||
<h4>Access Denied - HTTP 403</h4>
|
||||
<h4>{{ __('Access Denied - HTTP 403') }}</h4>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@ -43,7 +43,7 @@
|
||||
<div class="col-6 offset-5">
|
||||
|
||||
|
||||
<img src="/img/403.svg" width="150px" alt="Access denied" />
|
||||
<img src="/img/403.svg" width="150px" alt="{{ __('Image Describing Access Denied') }}" />
|
||||
|
||||
|
||||
</div>
|
||||
@ -54,17 +54,17 @@
|
||||
<div class="col">
|
||||
|
||||
<div class="alert alert-{{$type}}">
|
||||
<h4><i class="fas fa-user-lock"></i> Access Denied</h2>
|
||||
<h4><i class="fas fa-user-lock"></i> {{ __('Access Denied') }}</h4>
|
||||
<p class="text-muted">
|
||||
@if (isset($slot))
|
||||
{{ $slot }}
|
||||
@endif
|
||||
</p>
|
||||
<p>
|
||||
We're sorry, but you do not have permission to access this web page.
|
||||
{{ __("We're sorry, but you do not have permission to access this web page.") }}
|
||||
</p>
|
||||
<p>
|
||||
Please contact your administrator if you believe this was in error.
|
||||
{{ __('Please contact your administrator if you believe this was in error.') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
@ -41,15 +41,15 @@
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- Authentication Links -->
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Application Status</a>
|
||||
<a class="nav-link" href="#">{{ __('Application Status') }}</a>
|
||||
</li>
|
||||
@guest
|
||||
<li class="nav-item">
|
||||
<a class="nav-link waves-effect waves-light" href="{{ route('login') }}">Sign-in</a>
|
||||
<a class="nav-link waves-effect waves-light" href="{{ route('login') }}">{{ __('Sign-in') }}</a>
|
||||
</li>
|
||||
@if (Route::has('register'))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('register') }}">Register</a>
|
||||
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@else
|
||||
|
Loading…
x
Reference in New Issue
Block a user