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.
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
in, and submit the login request from any page to the main login page (to
allow errors to be displayed in case login is unsuccessful). I