PHP Класс Bolt\Controller\Backend\Authentication

Автор: Carson Full ([email protected])
Автор: Gawain Lynch ([email protected])
Наследование: extends BackendBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
addRoutes ( Silex\ControllerCollection $c )

Приватные методы

Метод Описание
handlePostLogin ( Request $request ) : Response Handle a login POST.
handlePostReset ( Request $request ) : RedirectResponse Handle a password reset POST.

Описание методов

addRoutes() защищенный Метод

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

getLogin() публичный Метод

Login page and "Forgotten password" page.
public getLogin ( Request $request, boolean $resetCookies = false ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$resetCookies boolean
Результат Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

logout() публичный Метод

Logout page.
public logout ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\RedirectResponse

postLogin() публичный Метод

Handle a login attempt.
public postLogin ( Request $request ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
Результат Symfony\Component\HttpFoundation\RedirectResponse

resetPassword() публичный Метод

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
Результат Symfony\Component\HttpFoundation\RedirectResponse