source: resources/views/auth/login.blade.php@ d25ba66

Last change on this file since d25ba66 was d25ba66, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

ADD post confirmation with multiple phases, notification after succesfully password creation

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[0924b6c]1@extends("layouts.auth")
2
3@section("title", "Login | TechnoBlog")
4
5@section("auth_content")
6 <div class="page">
7 <div class="page-single">
8 <div class="container">
9 <div class="row">
10 <div class="col col-login mx-auto">
11 <div class="text-center mb-6">
[c433da6]12 <img src="/assets/images/logo.png">
[0924b6c]13 </div>
14 <form class="card" action="{{ route("auth.login") }}" method="post" accept-charset="utf-8">
15
16 @csrf
17
18 <div class="card-body p-6">
19 <div class="card-title">Login to your account</div>
20
21 @if(Session::has('isActiveError'))
22 <div class="alert alert-danger alert-dismissible fade show" role="alert">
23 <strong> {{ Session::get('isActiveError') }} </strong>
24 <button type="button" class="close" data-dismiss="alert" aria-label="Close"></button>
[d25ba66]25 </div>
26 @endif
27
28 @if(Session::has('password_created'))
29 <div class="alert alert-success alert-dismissible fade show" role="alert">
30 <strong> {{ Session::get('password_created') }} </strong>
31 <button type="button" class="close" data-dismiss="alert" aria-label="Close"></button>
[0924b6c]32 </div>
33 @endif
34
35 @if(Session::has('loginError'))
36 <div class="alert alert-error fade show" role="alert">
37 <strong> {{ Session::get('loginError') }} </strong>
38 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
39 </button>
40 </div>
41 @endif
42
43 <div class="form-group">
44 <label class="form-label">Username</label>
45 <input id="username" type="text" tabindex="1" class="form-control{{ Session::has('usernameError') ? ' is-invalid' : '' }}" name="username" value="{{ old('username') }}" autocomplete="off" required autofocus>
46 @if(Session::has('usernameError'))
47 <span class="invalid-feedback" role="alert">
48 <strong>{{ Session::get('usernameError') }}</strong>
49 </span>
50 @endif
51 </div>
52 <div class="form-group">
53 <label class="form-label">
54 Password
55 <a href="/auth/forgot" tabindex="-1" class="float-right small">I forgot password</a>
56 </label>
57 <input id="password" type="password" tabindex="2" class="form-control{{ Session::has('passwordError') ? ' is-invalid' : '' }}" name="password" autocomplete="off" required>
58 @if(Session::has('passwordError'))
59 <span class="invalid-feedback" role="alert">
60 <strong>{{ Session::get('passwordError') }}</strong>
61 </span>
62 @endif
63 </div>
64 <div class="form-group">
65 <label class="custom-control custom-checkbox">
66 <input class="custom-control-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
67 <span class="custom-control-label">Remember me</span>
68 </label>
69 </div>
70 <div class="form-footer">
71 <input type="submit" value="Sign in" class="btn btn-primary btn-block">
72 </div>
73 </div>
74
75 </form>
76 </div>
77 </div>
78 </div>
79 </div>
80 </div>
81@endsection
Note: See TracBrowser for help on using the repository browser.