commit
a0b14391fb
|
|
@ -57,6 +57,14 @@ class SessionController extends Controller
|
|||
return redirect()->back();
|
||||
}
|
||||
|
||||
if (auth()->guard('customer')->user()->status == 0) {
|
||||
auth()->guard('customer')->logout();
|
||||
|
||||
session()->flash('warning', trans('shop::app.customer.login-form.not-activated'));
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
if (auth()->guard('customer')->user()->is_verified == 0) {
|
||||
session()->flash('info', trans('shop::app.customer.login-form.verify-first'));
|
||||
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ return [
|
|||
'footer' => '© Copyright :year Webkul Software, All rights reserved',
|
||||
'invalid-creds' => 'Please Check Your Credentials And Try Again',
|
||||
'verify-first' => 'Verify Your Email Account First',
|
||||
'not-activated' => 'Your activation seeks admin approval',
|
||||
'resend-verification' => 'Resend Verification Mail Again'
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue