You are not logged inmessage, that will link to this login page:
Loginbutton does nothing because we haven't yet set the
actionproperty of the form HTML element.
Loginbutton is clicked. This action will use the Login module to check the received
password, and act accordingly afterwards.
We've set the
isSensibleToBruteForceAttacksparameter to true when creating the Action to improve the resistance of this request to brute force attacks. We've also set the
isSecurityCsrfparameter to true when creating the Request, which adds protection against Cross-Site Request Forgery-type attacks to this request.
loginPagemethod to make it request this
loginGuideDoLoginaction URL whenever its posted. We've already seen how to retrieve the URL of an action above. In this case, we'll do it like this:
You are logged inwill be shown.
You are logged in as <user name>. Well, since the Login module does all the work of retrieving the logged user for you, as long as you have the Login module as a dependency in your modules, you'll be able to access the logged
Userobject at any time via
$e->Login->user. This is how we would modify the
homemethod in our example to include the user name:
loginGuideLogout, and it will be triggered with the
homemethod that will appear along the
Your are logged in as ...message. This time, to get the logout URL we use
logoutmethod like this: