
implemented page and touch display types Change-Id: I62591162f8d15f2174c69bf4f2e4d32deb0c6dc8
29 lines
578 B
PHP
29 lines
578 B
PHP
<?php
|
|
|
|
/**
|
|
* Class HomeController
|
|
*/
|
|
class HomeController extends OpenIdController
|
|
{
|
|
|
|
private $discovery;
|
|
|
|
public function __construct(DiscoveryController $discovery)
|
|
{
|
|
$this->discovery = $discovery;
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
|
|
if ($this->isDiscoveryRequest())
|
|
return $this->discovery->idp();
|
|
if (Auth::guest()) {
|
|
Session::flush();
|
|
Session::regenerate();
|
|
return View::make("home");
|
|
}
|
|
else
|
|
return Redirect::action("UserController@getProfile");
|
|
}
|
|
} |