Custom Login Page

Auth Template Files

Auth screens can live in resources/views/auth.

File Structure#

        • login.php
        • register.php
        • forgot-password.php
        • reset-password.php

When these files exist, TemplateX infers the matching auth action from the filename.

Starter Files#

Open TemplateX > Settings > Tweaks > Auth templates and layouts and use Create Auth Forms to create unstyled starter files.

Existing files are left untouched.

One Combined Login File#

You can also use one resources/views/login.php file and branch on auth_action:

phpresources/views/login.php
{{ if auth_action == "lost-password" }}  ...{{ else if auth_action == "register" }}  ...{{ else if auth_action == "reset-password" }}  ...{{ else }}  ...{{ /if }}

Use separate files when you want the simplest source structure.