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:
Manish Verma
2016-12-05 00:44:08 +05:30
parent d9ac2c1405
commit a24cd1e62b
8 changed files with 99 additions and 86 deletions

View File

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