Thanks for the advice. I have solved this by creating a login form component.
The login component attempts to log the user in, and if it fails, it uses
@InjectPage to inject the login page, and it sets the errors on the main
login form (like form.recordError("The username or password was
incorrect.
What about placecing the login form in your layout page/class and surround it
by a in your layout tml and implement a "boolean
isUserLoggedIn()" method in your layout class?
See T5 doc:
Api docs/corelib/components/if
User Guide/Layout Component
Jens
Sent from my iPhone
On 03.09.2012,
Hi,
create new component with your login form and use it on all pages you want.
On Mon, Sep 3, 2012 at 1:11 PM, fabs wrote:
> Hello all.
>
> My website has a login page, with a username and password field. However, I
> wish to show an inline login form on all pages when the user is not logged
>