Make sure login uses Form to get the csrf token
This commit is contained in:
@@ -1,3 +1,18 @@
|
|||||||
|
## Alpha 3
|
||||||
|
|
||||||
|
!! Please do a complete reinstall, with a new database
|
||||||
|
|
||||||
|
- Finances! The finance portions have been implemented, you can [read about them here](http://docs.phpvms.net/concepts/finances)
|
||||||
|
- Changed theme system to using [laravel-theme](https://github.com/igaster/laravel-theme), there are changes to making theming much simpler with much more flexibility.
|
||||||
|
- Fixed several security vulnerabilities (thanks magicflyer!)
|
||||||
|
- Fuel units changed to lbs/kgs [#193](https://github.com/nabeelio/phpvms/issues/193)
|
||||||
|
- Airports can be restricted to only hubs on registration/user profile
|
||||||
|
- Cleaned up a lot unused icons and files [#195](https://github.com/nabeelio/phpvms/issues/195)
|
||||||
|
- Rank restrictions for PIREPs are respected [#170](https://github.com/nabeelio/phpvms/issues/170)
|
||||||
|
- API: Added the ability to get/update/delete user bids [#172](https://github.com/nabeelio/phpvms/issues/172)
|
||||||
|
- Artisan: Added a `phpvms:export [tables]` to export tables to YAML files which can be re-imported using `phpvms:import`
|
||||||
|
- Numerous bug fixes
|
||||||
|
|
||||||
## Alpha 2 (2018-02-23, v7.0.0-alpha2)
|
## Alpha 2 (2018-02-23, v7.0.0-alpha2)
|
||||||
|
|
||||||
!! Please do a full reinstall, with recreating the database
|
!! Please do a full reinstall, with recreating the database
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
@extends("auth.layout")
|
@extends('auth.layout')
|
||||||
@section('title', 'log in')
|
@section('title', 'Log In')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-4 content-center">
|
<div class="col-md-4 content-center">
|
||||||
<div class="card card-login card-plain">
|
<div class="card card-login card-plain">
|
||||||
<form class="form" method="POST" action="{{ url('/login') }}">
|
{{ Form::open(['url' => url('/login'), 'method' => 'post']) }}
|
||||||
<div class="header header-primary text-center">
|
<div class="header header-primary text-center">
|
||||||
<div class="logo-container" style="width: 320px;">
|
<div class="logo-container" style="width: 320px;">
|
||||||
<img src="{{ public_asset('/assets/frontend/img/logo.svg') }}" width="320" height="320" style="background: #FFF">
|
<img src="{{ public_asset('/assets/frontend/img/logo.svg') }}" width="320" height="320" style="background: #FFF">
|
||||||
@@ -15,12 +15,14 @@
|
|||||||
<span class="input-group-addon">
|
<span class="input-group-addon">
|
||||||
<i class="now-ui-icons users_circle-08"></i>
|
<i class="now-ui-icons users_circle-08"></i>
|
||||||
</span>
|
</span>
|
||||||
<input id="email" type="email"
|
{{
|
||||||
class="form-control"
|
Form::text('email', old('email'), [
|
||||||
name="email"
|
'id' => 'email',
|
||||||
value="{{ old('email') }}"
|
'placeholder' => 'Email',
|
||||||
placeholder="Email"
|
'class' => 'form-control',
|
||||||
required>
|
'required' => true,
|
||||||
|
])
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
@if ($errors->has('email'))
|
@if ($errors->has('email'))
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
@@ -32,12 +34,14 @@
|
|||||||
<span class="input-group-addon">
|
<span class="input-group-addon">
|
||||||
<i class="now-ui-icons ui-1_lock-circle-open"></i>
|
<i class="now-ui-icons ui-1_lock-circle-open"></i>
|
||||||
</span>
|
</span>
|
||||||
<input id="password"
|
{{
|
||||||
type="password"
|
Form::password('password', [
|
||||||
name="password"
|
'name' => 'password',
|
||||||
class="form-control"
|
'class' => 'form-control',
|
||||||
placeholder="Password"
|
'placeholder' => 'Password',
|
||||||
required>
|
'required' => true,
|
||||||
|
])
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
@if ($errors->has('password'))
|
@if ($errors->has('password'))
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
@@ -59,7 +63,7 @@
|
|||||||
<a href="{{ url('/password/reset') }}" class="link">Forgot Password?</a>
|
<a href="{{ url('/password/reset') }}" class="link">Forgot Password?</a>
|
||||||
</h6>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@extends('app')
|
@extends('app')
|
||||||
|
@section('title', 'Reset Password')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -6,11 +7,14 @@
|
|||||||
<div class="col-md-8 col-md-offset-2">
|
<div class="col-md-8 col-md-offset-2">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">Reset Password</div>
|
<div class="panel-heading">Reset Password</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
|
{{ Form::open([
|
||||||
{{ csrf_field() }}
|
'url' => url('/password/reset'),
|
||||||
|
'method' => 'post',
|
||||||
|
'role' => 'form',
|
||||||
|
'class' => 'form-horizontal',
|
||||||
|
])
|
||||||
|
}}
|
||||||
<input type="hidden" name="token" value="{{ $token }}">
|
<input type="hidden" name="token" value="{{ $token }}">
|
||||||
|
|
||||||
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
|
||||||
@@ -61,7 +65,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
{{ Form::close() }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user