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:
{{ 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.