Merge fix for #1686
This commit is contained in:
parent
f6b37cb66d
commit
5b7bdaddcc
1 changed files with 3 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ use Auth;
|
|||
use Event;
|
||||
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
|
||||
use Illuminate\Http\Request;
|
||||
use Lang;
|
||||
use Session;
|
||||
use Utils;
|
||||
|
||||
|
|
@ -204,7 +205,8 @@ class AuthController extends Controller
|
|||
|
||||
Session::flush();
|
||||
|
||||
if ($reason = request()->reason) {
|
||||
$reason = htmlentities(request()->reason);
|
||||
if (!empty($reason) && Lang::has("texts.{$reason}_logout")) {
|
||||
Session::flash('warning', trans("texts.{$reason}_logout"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue