Add optional logout link to login display

Created on 1 July 2025, 4 months ago

Problem/Motivation

It would be a nice feature to have an optional log out button display on the log in form, so that, now users as automatically logged in as of version 4.x, they know that they either accept or log out.

Steps to reproduce

There is currently no out-of-the-box way to add a log out link to the login display.

Proposed resolution

Add an optional "log out link" checkbox and title customisation in the admin settings form which conditionally shows a log out link.

Remaining tasks

1. Add the logout link properties to the schema/admin form
2. Render the logout link conditionally in the login form

User interface changes

1. Show log out link "checkbox" added to the admin UI in the "login display settings" tab
2. Conditional log out link text added to the admin UI in the "login display settings" tab
3. Log out link will display conditionally on the user-facing login form for Ts & Cs

API changes

None

Data model changes

Schema added:
- login_show_logout: bool
- login_logout_text: string

Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom littlepixiez

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024