@extends('layouts.account')
@section('content')
Change my account password
{!! Form::open(['route' => 'account.password.update']) !!}
@if ($account->passwords()->count() > 0)
{!! Form::label('old_password', 'Old password') !!}
{!! Form::password('old_password', ['class' => 'form-control', 'required']) !!}
@endif
{!! Form::label('password', 'New password') !!}
{!! Form::password('password', ['class' => 'form-control', 'required']) !!}
{!! Form::label('password_confirmation', 'Password confirmation') !!}
{!! Form::password('password_confirmation', ['class' => 'form-control', 'required']) !!}
{!! Form::checkbox('password_sha256', 'checked', $account->passwords()->where('algorithm', 'SHA-256')->exists(), ['class' => 'form-check-input']) !!}
{!! Form::label('password_sha256', 'Use a SHA-256 encrypted password. This stronger password might not work with some old SIP clients.', ['class' => 'form-check-label']) !!}
{!! Form::submit('Change', ['class' => 'btn btn-primary float-right']) !!}
{!! Form::close() !!}
@endsection