PHP Class Bolt\Controller\Backend\Authentication

Author: Carson Full ([email protected])
Author: Gawain Lynch ([email protected])
Inheritance: extends BackendBase
ファイルを表示 Open project: bolt/bolt

Public Methods

Method Description
getLogin ( Request $request, boolean $resetCookies = false ) : TemplateResponse | RedirectResponse Login page and "Forgotten password" page.
logout ( Request $request ) : RedirectResponse Logout page.
postLogin ( Request $request ) : RedirectResponse Handle a login attempt.
resetPassword ( Request $request ) : RedirectResponse Reset the password. This route is normally only reached when the user clicks a "password reset" link in the email.

Protected Methods

Method Description
addRoutes ( Silex\ControllerCollection $c )

Private Methods

Method Description
handlePostLogin ( Request $request ) : Response Handle a login POST.
handlePostReset ( Request $request ) : RedirectResponse Handle a password reset POST.

Method Details

addRoutes() protected method

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

getLogin() public method

Login page and "Forgotten password" page.
public getLogin ( Request $request, boolean $resetCookies = false ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$resetCookies boolean
return Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

logout() public method

Logout page.
public logout ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse

postLogin() public method

Handle a login attempt.
public postLogin ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
return Symfony\Component\HttpFoundation\RedirectResponse

resetPassword() public method

Reset the password. This route is normally only reached when the user clicks a "password reset" link in the email.
public resetPassword ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse