Bug-fix-patch-36
# Refined UI for showing error messages in new layout of login/registration/create-ticket/home page while login and registration. # fixed registration error when email is non mandatory field.
This commit is contained in:
@@ -12,6 +12,7 @@ use App\User;
|
||||
use Auth;
|
||||
use Exception;
|
||||
use Mail;
|
||||
use Lang;
|
||||
|
||||
class PhpMailController extends Controller
|
||||
{
|
||||
@@ -75,7 +76,7 @@ class PhpMailController extends Controller
|
||||
{
|
||||
$from_address = $this->fetch_smtp_details($from);
|
||||
if ($from_address == null) {
|
||||
throw new Exception('Invalid Email Configuration');
|
||||
throw new Exception(Lang::get('lang.system-email-not-configured'));
|
||||
}
|
||||
|
||||
$this->setMailConfig($from_address);
|
||||
|
Reference in New Issue
Block a user