Merge pull request #1019 from prashant-webkul/development

Development
This commit is contained in:
Prashant Singh 2019-06-13 06:38:41 +05:30 committed by GitHub
commit a0b14391fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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'));

View File

@ -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'
],