diff options
Diffstat (limited to 'resources/views')
-rw-r--r-- | resources/views/dashboard/forgotPassword.edge | 49 | ||||
-rw-r--r-- | resources/views/dashboard/login.edge | 5 | ||||
-rw-r--r-- | resources/views/dashboard/resetPassword.edge | 64 |
3 files changed, 118 insertions, 0 deletions
diff --git a/resources/views/dashboard/forgotPassword.edge b/resources/views/dashboard/forgotPassword.edge new file mode 100644 index 0000000..755c300 --- /dev/null +++ b/resources/views/dashboard/forgotPassword.edge | |||
@@ -0,0 +1,49 @@ | |||
1 | @layout('layouts.v2') | ||
2 | |||
3 | @section('content') | ||
4 | <div class="w-screen h-screen bg-purple-200 flex items-center justify-center"> | ||
5 | <form class="w-full max-w-sm bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4" | ||
6 | action="/user/forgot" method="POST"> | ||
7 | <h1 class="text-gray-700 text-center text-2xl pb-5"> | ||
8 | Forgot Password? | ||
9 | </h1> | ||
10 | |||
11 | @if(flashMessage('error')) | ||
12 | <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"> | ||
13 | {{ flashMessage('error') }} | ||
14 | </div> | ||
15 | @endif | ||
16 | @if(old('message')) | ||
17 | <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"> | ||
18 | {{ old('message') }} | ||
19 | </div> | ||
20 | @endif | ||
21 | |||
22 | {{ csrfField() }} | ||
23 | <div class="mb-4"> | ||
24 | <label class="block text-gray-700 text-sm font-bold mb-2" for="username"> | ||
25 | |||
26 | </label> | ||
27 | <input | ||
28 | class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
29 | id="mail" | ||
30 | name="mail" | ||
31 | type="text" | ||
32 | placeholder="E-Mail" | ||
33 | value="{{ old('mail', '') }}" | ||
34 | required> | ||
35 | </div> | ||
36 | |||
37 | <button | ||
38 | class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" | ||
39 | type="submit"> | ||
40 | Reset password | ||
41 | </button> | ||
42 | <div class="text-center"> | ||
43 | <a class="w-full font-bold text-sm text-blue-500 hover:text-blue-800" href="/user/login"> | ||
44 | Login instead | ||
45 | </a> | ||
46 | </div> | ||
47 | </form> | ||
48 | </div> | ||
49 | @endsection | ||
diff --git a/resources/views/dashboard/login.edge b/resources/views/dashboard/login.edge index 9b4b52a..dce7360 100644 --- a/resources/views/dashboard/login.edge +++ b/resources/views/dashboard/login.edge | |||
@@ -55,6 +55,11 @@ | |||
55 | By logging in, you accept the <a href="/terms">Terms of Service</a> and <a href="/privacy">Privacy policy</a>. This website uses cookies to log you in. | 55 | By logging in, you accept the <a href="/terms">Terms of Service</a> and <a href="/privacy">Privacy policy</a>. This website uses cookies to log you in. |
56 | </p> | 56 | </p> |
57 | <div class="text-center"> | 57 | <div class="text-center"> |
58 | <a class="w-full font-bold text-sm text-blue-500 hover:text-blue-800" href="/user/forgot"> | ||
59 | Forgot my Password | ||
60 | </a> | ||
61 | </div> | ||
62 | <div class="text-center"> | ||
58 | <a class="w-full font-bold text-sm text-blue-500 hover:text-blue-800" href="../import"> | 63 | <a class="w-full font-bold text-sm text-blue-500 hover:text-blue-800" href="../import"> |
59 | Import your Franz account | 64 | Import your Franz account |
60 | </a> | 65 | </a> |
diff --git a/resources/views/dashboard/resetPassword.edge b/resources/views/dashboard/resetPassword.edge new file mode 100644 index 0000000..d663020 --- /dev/null +++ b/resources/views/dashboard/resetPassword.edge | |||
@@ -0,0 +1,64 @@ | |||
1 | @layout('layouts.v2') | ||
2 | |||
3 | @section('content') | ||
4 | <div class="w-screen h-screen bg-purple-200 flex items-center justify-center"> | ||
5 | <form class="w-full max-w-sm bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4" | ||
6 | action="/user/reset" method="POST"> | ||
7 | <h1 class="text-gray-700 text-center text-2xl pb-5"> | ||
8 | Reset Your Password | ||
9 | </h1> | ||
10 | |||
11 | @if(flashMessage('error')) | ||
12 | <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"> | ||
13 | {{ flashMessage('error') }} | ||
14 | </div> | ||
15 | @endif | ||
16 | @if(old('message')) | ||
17 | <div class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4"> | ||
18 | {{ old('message') }} | ||
19 | </div> | ||
20 | @endif | ||
21 | |||
22 | {{ csrfField() }} | ||
23 | <div class="mb-4"> | ||
24 | <label class="block text-gray-700 text-sm font-bold mb-2" for="password"> | ||
25 | New Password | ||
26 | </label> | ||
27 | <input | ||
28 | class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
29 | id="password" | ||
30 | name="password" | ||
31 | type="password" | ||
32 | placeholder="New Password" | ||
33 | value="{{ old('password', '') }}" | ||
34 | required> | ||
35 | </div> | ||
36 | <div class="mb-4"> | ||
37 | <label class="block text-gray-700 text-sm font-bold mb-2" for="password_confirmation"> | ||
38 | Confirm Password | ||
39 | </label> | ||
40 | <input | ||
41 | class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
42 | id="password_confirmation" | ||
43 | name="password_confirmation" | ||
44 | type="password" | ||
45 | placeholder="Confirm Password" | ||
46 | value="{{ old('password_confirmation', '') }}" | ||
47 | required> | ||
48 | </div> | ||
49 | |||
50 | <input type="hidden" name="token" value="{{ token }}"> | ||
51 | |||
52 | <button | ||
53 | class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" | ||
54 | type="submit"> | ||
55 | Reset password | ||
56 | </button> | ||
57 | <div class="text-center"> | ||
58 | <a class="w-full font-bold text-sm text-blue-500 hover:text-blue-800" href="/user/login"> | ||
59 | Login instead | ||
60 | </a> | ||
61 | </div> | ||
62 | </form> | ||
63 | </div> | ||
64 | @endsection | ||