Reiseland Kontaktdaten, Rabatt API
This commit is contained in:
parent
8f29c15a2b
commit
70704be1ea
30 changed files with 471 additions and 95 deletions
|
|
@ -68,6 +68,7 @@ class HomeController extends Controller
|
|||
|
||||
public function checkLogin($identify, $token, $show = false)
|
||||
{
|
||||
|
||||
if($identify){
|
||||
//user find by $identify
|
||||
$user = User::where('identify', '=', $identify)->first();
|
||||
|
|
@ -83,9 +84,11 @@ class HomeController extends Controller
|
|||
return abort(404);
|
||||
|
||||
}
|
||||
|
||||
if($sf_guard_user->token != $token){
|
||||
return abort(404);
|
||||
}
|
||||
|
||||
$time = Carbon::parse($sf_guard_user->token_at);
|
||||
$now = Carbon::now();
|
||||
$duration = $time->diffInSeconds($now);
|
||||
|
|
@ -123,6 +126,10 @@ class HomeController extends Controller
|
|||
if($show == 'travel_country'){
|
||||
return redirect(route('admin_settings_travel_country'));
|
||||
}
|
||||
if($show == 'cms_content_country'){
|
||||
return redirect(route('cms_content_country'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue