PHP Class BookStack\Http\Controllers\Auth\LoginController

Inheritance: extends BookStack\Http\Controllers\Controller, use trait Illuminate\Foundation\Auth\AuthenticatesUsers
Show file Open project: ssddanbrown/bookstack

Protected Properties

Property Type Description
$redirectAfterLogout
$redirectPath
$redirectTo string Where to redirect users after login.
$socialAuthService
$userRepo

Public Methods

Method Description
__construct ( SocialAuthService $socialAuthService, UserRepo $userRepo ) Create a new controller instance.
getLogin ( ) : Illuminate\Http\Response Show the application login form.
getSocialLogin ( $socialDriver ) : RedirectResponse Redirect to the relevant social site.
username ( )

Protected Methods

Method Description
authenticated ( Illuminate\Http\Request $request, Illuminate\Contracts\Auth\Authenticatable $user ) : Illuminate\Http\RedirectResponse Overrides the action when a user is authenticated.

Method Details

__construct() public method

Create a new controller instance.
public __construct ( SocialAuthService $socialAuthService, UserRepo $userRepo )
$socialAuthService BookStack\Services\SocialAuthService
$userRepo BookStack\Repos\UserRepo

authenticated() protected method

If the user authenticated but does not exist in the user table we create them.
protected authenticated ( Illuminate\Http\Request $request, Illuminate\Contracts\Auth\Authenticatable $user ) : Illuminate\Http\RedirectResponse
$request Illuminate\Http\Request
$user Illuminate\Contracts\Auth\Authenticatable
return Illuminate\Http\RedirectResponse

getLogin() public method

Show the application login form.
public getLogin ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

getSocialLogin() public method

Redirect to the relevant social site.
public getSocialLogin ( $socialDriver ) : RedirectResponse
$socialDriver
return Symfony\Component\HttpFoundation\RedirectResponse

username() public method

public username ( )

Property Details

$redirectAfterLogout protected property

protected $redirectAfterLogout

$redirectPath protected property

protected $redirectPath

$redirectTo protected property

Where to redirect users after login.
protected string $redirectTo
return string

$socialAuthService protected property

protected $socialAuthService

$userRepo protected property

protected $userRepo