LoginLinkHandlerInterface
in
A class that is able to create and handle "magic" login links.
Tags
Table of Contents
Methods
- consumeLoginLink() : UserInterface
- Validates if this request contains a login link and returns the associated User.
- createLoginLink() : LoginLinkDetails
- Generate a link that can be used to authenticate as the given user.
Methods
consumeLoginLink()
Validates if this request contains a login link and returns the associated User.
public
consumeLoginLink(Request $request) : UserInterface
Throw InvalidLoginLinkExceptionInterface if the link is invalid.
Parameters
- $request : Request
Return values
UserInterfacecreateLoginLink()
Generate a link that can be used to authenticate as the given user.
public
createLoginLink(UserInterface $user[, Request $request = null ]) : LoginLinkDetails
Parameters
- $user : UserInterface
- $request : Request = null