aboutsummaryrefslogtreecommitdiffstats
path: root/resources/views/dashboard/resetPassword.edge
blob: d66302055d067a7a0f8c5c5e34c819a7eeac9f86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@layout('layouts.v2')

@section('content')
<div class="w-screen h-screen bg-purple-200 flex items-center justify-center">
<form class="w-full max-w-sm bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"
  action="/user/reset" method="POST">
    <h1 class="text-gray-700 text-center text-2xl pb-5">
      Reset Your Password
    </h1>

    @if(flashMessage('error'))
    <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
      {{ flashMessage('error') }}
    </div>
    @endif
    @if(old('message'))
    <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4">
      {{ old('message') }}
    </div>
    @endif

    {{ csrfField() }}
    <div class="mb-4">
      <label class="block text-gray-700 text-sm font-bold mb-2" for="password">
        New Password
      </label>
      <input
        class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
        id="password"
        name="password"
        type="password"
        placeholder="New Password"
        value="{{ old('password', '') }}"
        required>
    </div>
    <div class="mb-4">
      <label class="block text-gray-700 text-sm font-bold mb-2" for="password_confirmation">
        Confirm Password
      </label>
      <input
        class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
        id="password_confirmation"
        name="password_confirmation"
        type="password"
        placeholder="Confirm Password"
        value="{{ old('password_confirmation', '') }}"
        required>
    </div>

    <input type="hidden" name="token" value="{{ token }}">
    
    <button
      class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
      type="submit">
      Reset password
    </button>
    <div class="text-center">
      <a class="w-full font-bold text-sm text-blue-500 hover:text-blue-800" href="/user/login">
        Login instead
      </a>
    </div>
</form>
</div>
@endsection