flexisip-account-manager/flexiapi/resources/views/account/login.blade.php
Timothée Jaussoin c65f1a804c UI and feature adjustments
- 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
2020-09-14 11:24:59 +02:00

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