add toggle to disable regs
This commit is contained in:
@@ -23,7 +23,9 @@
|
||||
<ul class="col-md-8 offset-md-4 sr-list">
|
||||
<li><button type="submit" class="btn btn-primary">{{ __('Login') }}</button>
|
||||
<li><a class="btn btn-link pr-1 pl-2" href="{{ route('password.request') }}">{{ __('Forgot Your Password?') }}</a>
|
||||
<li><a class="btn btn-link px-1" href="{{ route('register') }}">{{ __('Register') }}</a>
|
||||
@if(config('app.allow_regs'))
|
||||
<li><a class="btn btn-link px-1" href="{{ route('register') }}">{{ __('Register') }}</a>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -1,48 +1,56 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h1>{{ __('Register') }}</h1>
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h1>{{ __('Register') }}</h1>
|
||||
</div>
|
||||
|
||||
@if(config('app.allow_regs'))
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('register') }}" aria-label="{{ __('Register') }}">
|
||||
@csrf
|
||||
|
||||
@php(Widget::setLayout(4, 6))
|
||||
|
||||
{!! Widget::text('name', 'Username')->required()->prepend('@')
|
||||
->help('This will be part of your vanity URL; only letters, digits and
|
||||
some symbols are allowed. You can always change this later.') !!}
|
||||
|
||||
{!! Widget::email('email', 'E-Mail Address')->required()->autofocus()
|
||||
->help('Used to login and for password resets') !!}
|
||||
|
||||
{!! Widget::password('password', 'Password')->required() !!}
|
||||
{!! Widget::password('password_confirmation', 'Confirm Password')->required() !!}
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Register') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('register') }}" aria-label="{{ __('Register') }}">
|
||||
@csrf
|
||||
<div class="card-footer bg-white text-muted">
|
||||
You can also register by logging in with
|
||||
<a href="{{route('oauth-google-authorize')}}">Google</a>,
|
||||
<a href="{{route('oauth-github-authorize')}}">GitHub</a>,
|
||||
or <a href="{{route('oauth-facebook-authorize')}}">Facebook</a>.
|
||||
</div>
|
||||
|
||||
@php(Widget::setLayout(4, 6))
|
||||
|
||||
{!! Widget::text('name', 'Username')->required()->prepend('@')
|
||||
->help('This will be part of your vanity URL; only letters, digits and
|
||||
some symbols are allowed. You can always change this later.') !!}
|
||||
|
||||
{!! Widget::email('email', 'E-Mail Address')->required()->autofocus()
|
||||
->help('Used to login and for password resets') !!}
|
||||
|
||||
{!! Widget::password('password', 'Password')->required() !!}
|
||||
{!! Widget::password('password_confirmation', 'Confirm Password')->required() !!}
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Register') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="card-footer bg-white text-muted">
|
||||
You can also register by logging in with
|
||||
<a href="{{route('oauth-google-authorize')}}">Google</a>,
|
||||
<a href="{{route('oauth-github-authorize')}}">GitHub</a>,
|
||||
or <a href="{{route('oauth-facebook-authorize')}}">Facebook</a>.
|
||||
</div>
|
||||
@else
|
||||
<div class="card-body">
|
||||
<p>Registrations are currently closed.</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user