Documentation / How-to guides
Customise the Sign In page
Change the layout, wording, images and links of the application's Sign In page, and add the page to a solution saved by an earlier version.
Applies to Glyphox 1.0.10
Before you begin
- A solution with a web module that requires sign-in.
The application's Sign In page is a page of the model, which you edit like any other page. It is named Sign In, has the address /sign-in, is open to everyone, is not in the menu and uses no layout.
A solution has one Sign In page. It belongs to the Home module: the web module that holds the solution's Home page or, where no Home page is set, the solution's first web module.
Where the page comes from
The first web module of a new solution starts with the Sign In page. A web module that is added later has none, because its people sign in on the Home module's page.
A module saved by version 1.0.9 or earlier keeps its generated sign-in screen until you add the page, as described under Add the page to an existing solution.
Step 1: Open the page
In the Solution tree, select Sign In among the Home module's pages. Alternatively, open the Home module's Module Settings → Security and select Open Page beside Sign In page.
Step 2: Change the page
The page is written as code. It starts with the application's icon, the application's name and the line "Sign in to continue", around the Sign In Form. Change its layout, wording, images and links as you would on any other page.
The Sign In Form
The Sign In Form is one part of the page, written <SignInForm /> and imported from @/model. It retains everything that signs a person in: the email and password fields and their validation, a button for each identity provider, the session, the return to the page the person asked for, and Sign in as a role… on a local run. The page around the form never holds a password.
providersSet it to false to hide the identity providers' buttons.submitLabelThe text of the form's button.The form belongs on the Sign In page only. The Problems view reports the form on another page, in a component or in a module other than the Home module. It also reports a page at /sign-in that has no form, because nobody could then sign in, and a Sign In page whose route is not /sign-in.
Add the page to an existing solution
Open the Home module's Module Settings → Security. Beside Sign In page, the screen states where people sign in at present, for example "People sign in on the generated screen." Select Add Sign In Page, or run Glyphox: Add Sign In Page. The module must require sign-in.
Other web modules
Every web module that is served together with the Home module uses its Sign In page. This is the case on a local run and behind the exported gateway. A person who opens a page of such a module without being signed in is taken to the Sign In page and, after signing in, returns to the page they asked for.
The Security screen of such a module reads "Sign-in is handled by", followed by the Home module's name. Sign-in methods and Role for new sign-ups remain settings of each module, and the Sign In page offers the methods of every module.
A module that is deployed on its own domain keeps the generated sign-in screen.
Delete the page, or move the Home page
Deleting the Sign In page asks for confirmation and states the consequence first: people will sign in on the generated screen instead.
If the solution's Home page moves to another module, the Sign In page does not move with it, and the Problems view reports the page that was left behind. Delete that page, then add the Sign In page in the new Home module.
Ask the Assistant
The Assistant and a connected coding agent can add the Sign In page and change it. A change that would remove the form from the page, or place it elsewhere, is refused.
Related articles
Add an identity provider, in this section, adds a sign-in method. Roles and permissions describes the Require sign-in setting.
If a step fails, see Troubleshoot the first run or contact support.