mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
Forgot and change password
This commit is contained in:
@@ -28,9 +28,4 @@ class ForgotPasswordController extends Controller
|
||||
{
|
||||
$this->middleware('guest');
|
||||
}
|
||||
|
||||
public function showForgotForm()
|
||||
{
|
||||
return view('pages.authentication.forgot');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</div>
|
||||
<div class="row m-t-5">
|
||||
<div class="col no-padding">
|
||||
<small class="text-complete">Forgot your password?</small>
|
||||
<a href="{{ route("password.forgot") }}"><small class="text-complete">Forgot your password?</small></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
@extends('layouts.base')
|
||||
|
||||
@section('content')
|
||||
<div class="fluid-container h-100">
|
||||
<div class="row no-margin" style=" min-height: 100%; ">
|
||||
<div class="col no-padding" style="background-image: url({{asset('images/shipping_bg.jpeg')}}); background-position: center; background-size: cover;">
|
||||
<div class="w-100 h-100 bg-primary" style="position: absolute; opacity: 0.1;"></div>
|
||||
</div>
|
||||
<div class="col-4 padding-50 bg-white">
|
||||
<div class="row m-t-50">
|
||||
<div class="col m-t-50 p-l-0">
|
||||
<img src="{{asset('images/logo.png')}}" alt="logo" height="35">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row m-t-50">
|
||||
<div class="col">
|
||||
<div class="inline v-align-middle">
|
||||
<h4 class="font-heading no-margin lh-28">Change Your Password</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row m-t-10">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
@if($errors->any())
|
||||
@foreach ($errors->all() as $error)
|
||||
<div class="error">{{ $error }}</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<form method="post" id="form-login" class="p-t-15" action="{{ route('password.update') }}">
|
||||
@csrf
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
<div class="form-group form-group-default">
|
||||
<label>Email</label>
|
||||
<div class="controls">
|
||||
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" placeholder="Your Email" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-group-default">
|
||||
<label>Password</label>
|
||||
<div class="controls">
|
||||
<input type="password" class="form-control" name="password" placeholder="Credentials" required>
|
||||
@if ($errors->has('password'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group form-group-default">
|
||||
<label>Confirm Password</label>
|
||||
<div class="controls">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="Credentials" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-end align-items-end">
|
||||
<div class="col-auto">
|
||||
<button type="submit" class="btn btn-primary btn-cons m-t-10 pull-right m-r-0">Change</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{{--<form method="POST" action="{{ route('password.update') }}">--}}
|
||||
{{--@csrf--}}
|
||||
|
||||
{{--<input type="hidden" name="token" value="{{ $token }}">--}}
|
||||
|
||||
{{--<div class="form-group row">--}}
|
||||
{{--<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>--}}
|
||||
|
||||
{{--<div class="col-md-6">--}}
|
||||
{{--<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" required autofocus>--}}
|
||||
|
||||
{{--@if ($errors->has('email'))--}}
|
||||
{{--<span class="invalid-feedback" role="alert">--}}
|
||||
{{--<strong>{{ $errors->first('email') }}</strong>--}}
|
||||
{{--</span>--}}
|
||||
{{--@endif--}}
|
||||
{{--</div>--}}
|
||||
{{--</div>--}}
|
||||
|
||||
{{--<div class="form-group row">--}}
|
||||
{{--<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>--}}
|
||||
|
||||
{{--<div class="col-md-6">--}}
|
||||
{{--<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required>--}}
|
||||
|
||||
{{--@if ($errors->has('password'))--}}
|
||||
{{--<span class="invalid-feedback" role="alert">--}}
|
||||
{{--<strong>{{ $errors->first('password') }}</strong>--}}
|
||||
{{--</span>--}}
|
||||
{{--@endif--}}
|
||||
{{--</div>--}}
|
||||
{{--</div>--}}
|
||||
|
||||
{{--<div class="form-group row">--}}
|
||||
{{--<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>--}}
|
||||
|
||||
{{--<div class="col-md-6">--}}
|
||||
{{--<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>--}}
|
||||
{{--</div>--}}
|
||||
{{--</div>--}}
|
||||
|
||||
{{--<div class="form-group row mb-0">--}}
|
||||
{{--<div class="col-md-6 offset-md-4">--}}
|
||||
{{--<button type="submit" class="btn btn-primary">--}}
|
||||
{{--{{ __('Reset Password') }}--}}
|
||||
{{--</button>--}}
|
||||
{{--</div>--}}
|
||||
{{--</div>--}}
|
||||
{{--</form>--}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+42
-9
@@ -1,6 +1,33 @@
|
||||
@extends('layouts.base')
|
||||
|
||||
@section('content')
|
||||
@if (session('status'))
|
||||
<div class="fluid-container h-100">
|
||||
<div class="row no-margin" style="min-height: 100%; ">
|
||||
<div class="card no-margin" style="background-image: url({{asset('images/shipping_bg.jpeg')}}); background-position: center; background-size: cover;">
|
||||
<div class="card-body row align-items-center justify-content-center">
|
||||
<div class="col-5 padding-50 bg-white text-center">
|
||||
<div class="password_panel">
|
||||
<div class="password_desc">
|
||||
<i class="text-success fs-40 block"></i>
|
||||
<h5 class="font-heading bold">We just sent an email to reset your password</h5>
|
||||
<p class="text-muted no-margin p-b-20">Click on the link we've sent you to reset your password.
|
||||
if you have not received an email, Please check your spambox</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col no-padding text-center">
|
||||
<a href="{{ route('login') }}">
|
||||
<button class="btn btn-primary">Back to Login</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="fluid-container h-100">
|
||||
<div class="row no-margin" style=" min-height: 100%; ">
|
||||
<div class="col no-padding" style="background-image: url({{asset('images/shipping_bg.jpeg')}}); background-position: center; background-size: cover;">
|
||||
@@ -31,29 +58,35 @@
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<!-- START Login Form -->
|
||||
<form method="post" id="form-login" class="p-t-15" action="{{route('auth.forgot')}}">
|
||||
<form method="POST" action="{{ route('password.email') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group form-group-default">
|
||||
<label>Username</label>
|
||||
<div class="controls">
|
||||
<input name="email" placeholder="Email Address" class="form-control">
|
||||
<input name="email" placeholder="Email Address" id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
@if ($errors->has('email'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row justify-content-end align-items-end">
|
||||
<div class="col-auto">
|
||||
{{ csrf_field() }}
|
||||
<button class="btn btn-primary btn-cons m-t-10 pull-right m-r-0">Reset</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<<<<<<< Updated upstream
|
||||
@endsection
|
||||
=======
|
||||
@endsection
|
||||
>>>>>>> Stashed changes
|
||||
@endif
|
||||
@endsection
|
||||
+9
-3
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
Route::get('/', 'Auth\LoginController@showLoginForm')->name('login');
|
||||
Route::get('/forgot', 'Auth\ForgotPasswordController@showForgotForm')->name('login');
|
||||
|
||||
Route::group(['prefix' => 'auth'], function () {
|
||||
Route::post('/login', 'Auth\LoginController@login')->name('auth.login');
|
||||
@@ -10,7 +9,14 @@ Route::group(['prefix' => 'auth'], function () {
|
||||
|
||||
Route::post('/registration/create', 'Account\RegisterAccountController@register')->name('auth.registration.create');
|
||||
|
||||
Route::post('/forgot', 'Account\ForgotAccountController@forgot')->name('auth.forgot');
|
||||
Route::get('password/forgot', function () {
|
||||
return view('pages.authentication.password.forgot');
|
||||
})->name('password.forgot');
|
||||
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
|
||||
Route::get('password/reset/{token}', function ($token){
|
||||
return view('pages.authentication.password.change',['token' => $token]);
|
||||
})->name('password.reset');
|
||||
Route::post('password/update', 'Auth\ResetPasswordController@reset')->name('password.update');
|
||||
|
||||
Route::get('/logout', 'Auth\LoginController@logout')->name('auth.logout');
|
||||
});
|
||||
@@ -47,7 +53,7 @@ Route::group(['middleware' => ['secure', 'clearcache']], function (): void {
|
||||
Route::get('/order/profile', function(){
|
||||
return view('pages.orders.profile');
|
||||
})->name('order.profile');
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user