mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-17 19:58:27 +00:00
- Add a toggle for the phone SMS registration/auth related features - Add the newsletter email registration toggle - Rename and move around views and controllers - Refactor the login and registration forms - Split the registration form in two, email and phone
37 lines
No EOL
1.5 KiB
PHP
37 lines
No EOL
1.5 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('content')
|
|
<p class="text-center">
|
|
No account yet?
|
|
<a class="btn btn-secondary ml-2" href="{{ route('account.register') }}">Register</a>
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
@if (Auth::check())
|
|
@include('parts.already_auth')
|
|
@else
|
|
{!! Form::open(['route' => 'account.authenticate']) !!}
|
|
<div class="form-row">
|
|
<div class="form-group col-md-6">
|
|
@if (config('app.phone_authentication'))
|
|
{!! Form::label('username', 'Username or phone number') !!}
|
|
{!! Form::text('username', old('username'), ['class' => 'form-control', 'placeholder' => 'username or phone number', 'required']) !!}
|
|
@else
|
|
{!! Form::label('username', 'Username') !!}
|
|
{!! Form::text('username', old('username'), ['class' => 'form-control', 'placeholder' => 'username', 'required']) !!}
|
|
@endif
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
{!! Form::label('password', 'Password') !!}
|
|
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'myPassword', 'required']) !!}
|
|
</div>
|
|
</div>
|
|
|
|
{!! Form::submit('Authenticate', ['class' => 'btn btn-primary btn-centered mt-1']) !!}
|
|
|
|
{!! Form::close() !!}
|
|
|
|
@include('parts.password_recovery')
|
|
@endif
|
|
@endsection |