PHP Class BookStack\Http\Controllers\Auth\LoginController

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

Protected Properties

Свойство Type Description
$redirectAfterLogout
$redirectPath
$redirectTo string Where to redirect users after login.
$socialAuthService
$userRepo

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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 méthode

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

authenticated() protected méthode

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
Résultat Illuminate\Http\RedirectResponse

getLogin() public méthode

Show the application login form.
public getLogin ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

getSocialLogin() public méthode

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

username() public méthode

public username ( )

Property Details

$redirectAfterLogout protected_oe property

protected $redirectAfterLogout

$redirectPath protected_oe property

protected $redirectPath

$redirectTo protected_oe property

Where to redirect users after login.
protected string $redirectTo
Résultat string

$socialAuthService protected_oe property

protected $socialAuthService

$userRepo protected_oe property

protected $userRepo