Skip to content

Commit

Permalink
Merge pull request #74 from joshbenham/enhancements/confirm-password
Browse files Browse the repository at this point in the history
Added a theme file for the confirm password route that got added in
  • Loading branch information
michaeldyrynda authored Nov 30, 2019
2 parents f2861eb + 3554aa6 commit 5c4222c
Showing 1 changed file with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@extends('layouts.app')

@section('content')
<div class="container mx-auto">
<div class="flex flex-wrap justify-center">
<div class="w-full max-w-sm">
<div class="flex flex-col break-words bg-white border border-2 rounded shadow-md">

<div class="font-semibold bg-gray-200 text-gray-700 py-3 px-6 mb-0">
{{ __('Confirm Password') }}
</div>

<form class="w-full p-6" method="POST" action="{{ route('password.confirm') }}">
@csrf

<p class="leading-normal">
{{ __('Please confirm your password before continuing.') }}
</p>

<div class="flex flex-wrap my-6">
<label for="password" class="block text-gray-700 text-sm font-bold mb-2">
{{ __('Password') }}:
</label>

<input id="password" type="password" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline @error('password') border-red-500 @enderror" name="password" required autocomplete="new-password">

@error('password')
<p class="text-red-500 text-xs italic mt-4">
{{ $message }}
</p>
@enderror
</div>

<div class="flex flex-wrap items-center">
<button type="submit" class="bg-blue-500 hover:bg-blue-700 text-gray-100 font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
{{ __('Confirm Password') }}
</button>

@if (Route::has('password.request'))
<a class="text-sm text-blue-500 hover:text-blue-700 whitespace-no-wrap no-underline ml-auto" href="{{ route('password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
</div>
</form>

</div>
</div>
</div>
</div>
@endsection

0 comments on commit 5c4222c

Please sign in to comment.