Bug-fix-patch2
# correct while registration
This commit is contained in:
@@ -183,9 +183,11 @@ class AuthController extends Controller
|
||||
$message12 = '';
|
||||
$settings = CommonSettings::select('status')->where('option_name', '=', 'send_otp')->first();
|
||||
$sms = Plugin::select('status')->where('name', '=', 'SMS')->first();
|
||||
// Event for login
|
||||
\Event::fire(new \App\Events\LoginEvent($request));
|
||||
$var = $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $request->input('email')], $message = ['subject' => null, 'scenario' => 'registration'], $template_variables = ['user' => $name, 'email_address' => $request->input('email'), 'password_reset_link' => url('account/activate/'.$code)]);
|
||||
// Event for login
|
||||
\Event::fire(new \App\Events\LoginEvent($request));
|
||||
if ($request->input('email') !== '') {
|
||||
$var = $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $request->input('email')], $message = ['subject' => null, 'scenario' => 'registration'], $template_variables = ['user' => $name, 'email_address' => $request->input('email'), 'password_reset_link' => url('account/activate/'.$code)]);
|
||||
}
|
||||
if ($settings->status == 1 || $settings->status == '1') {
|
||||
if (count($sms) > 0) {
|
||||
if ($sms->status == 1 || $sms->status == '1') {
|
||||
@@ -194,7 +196,11 @@ class AuthController extends Controller
|
||||
$message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail_sms_plugin_inactive_or_not_setup');
|
||||
}
|
||||
} else {
|
||||
$message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail');
|
||||
if ($request->input('email') !== '') {
|
||||
$message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail');
|
||||
} else {
|
||||
$message12 = Lang::get('lang.account-created-contact-admin-as-we-were-not-able-to-send-opt');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail');
|
||||
|
@@ -1146,4 +1146,7 @@ return [
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||
|
||||
//update 18-12-2016
|
||||
'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.',
|
||||
|
||||
];
|
||||
|
@@ -1583,4 +1583,7 @@ return [
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||
|
||||
//update 18-12-2016
|
||||
'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.',
|
||||
|
||||
];
|
||||
|
@@ -1554,4 +1554,7 @@ return [
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||
|
||||
//update 18-12-2016
|
||||
'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.',
|
||||
|
||||
];
|
||||
|
@@ -1105,4 +1105,7 @@ return [
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||
|
||||
//update 18-12-2016
|
||||
'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.',
|
||||
];
|
||||
|
@@ -1599,4 +1599,7 @@ return [
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||
|
||||
//update 18-12-2016
|
||||
'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.',
|
||||
|
||||
];
|
||||
|
@@ -1544,4 +1544,7 @@ return [
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||
|
||||
//update 18-12-2016
|
||||
'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.',
|
||||
|
||||
];
|
||||
|
@@ -1052,4 +1052,7 @@ return [
|
||||
'restore-user' => 'Restore user account',
|
||||
'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.',
|
||||
'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.',
|
||||
|
||||
//update 18-12-2016
|
||||
'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.',
|
||||
];
|
||||
|
Reference in New Issue
Block a user