Installer updates
Added probe.php Added new installer views and controllers Updated AuthController Updated Middlewares Updated Commands for installation process
This commit is contained in:
@@ -22,7 +22,7 @@ use Auth;
|
||||
use DateTime;
|
||||
use DB;
|
||||
use Hash;
|
||||
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
|
||||
use Illuminate\Http\Request;
|
||||
use Lang;
|
||||
use Socialite;
|
||||
|
||||
@@ -38,7 +38,6 @@ use Socialite;
|
||||
*/
|
||||
class AuthController extends Controller
|
||||
{
|
||||
use AuthenticatesAndRegistersUsers;
|
||||
/* to redirect after login */
|
||||
|
||||
// if auth is agent
|
||||
@@ -644,4 +643,27 @@ class AuthController extends Controller
|
||||
\Session::set($provider.'redirect', $url);
|
||||
$this->changeRedirect();
|
||||
}
|
||||
|
||||
/**
|
||||
* Log the user out of the application.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function getLogout(Request $request)
|
||||
{
|
||||
\Event::fire('user.logout', []);
|
||||
$login = new LoginController();
|
||||
|
||||
return $login->logout($request);
|
||||
}
|
||||
|
||||
public function redirectPath()
|
||||
{
|
||||
$auth = Auth::user();
|
||||
if ($auth && $auth->role != 'user') {
|
||||
return 'dashboard';
|
||||
} else {
|
||||
return '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user