Show message.

This commit is contained in:
James Cole
2015-07-22 19:35:39 +02:00
parent faa128d41e
commit 7af072b8fc
4 changed files with 24 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use Preferences;
use Session;
use View;
/**
@@ -44,6 +45,13 @@ abstract class Controller extends BaseController
View::share('language', $lang);
// the user is bouncing email.
$bounce = Preferences::get('bounce', 'notBounced')->data;
if ($bounce != 'notBounced') {
$email = Auth::user()->email;
$message = trans('firefly.bounce_error', ['email' => $email, 'message' => $bounce]);
Session::flash('error', $message);
}
}
}
}