# Bug OP-18143 - "Session expiry time after inactivity" always shown in Admin > Authentication > Login and registration form

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-18143

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration |
| Target versions | 17.0.0 |
| Observed in versions | 16.6.0 |
| Sprint | 17.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| Accessibility | Yes |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Alexander Coles |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user with permissions to administer OpenProject.

2.  Go Admin \> Authentication \> Login and registration.

### What is the buggy behavior?

  - The "**Session expiry time after inactivity**" field is always shown.

### What is the expected behavior?

1.  The "**Session expiry time after inactivity**" field should only be shown if "**Session expires" is checked.**

### Important note

The expected behavior is inferred by there still being (broken) code in place to toggle the display of the "Session expires" number field.

`frontend/src/app/core/setup/globals/global-listeners/settings.ts`

### Screenshots and other files

Actual behavior:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/804800/content">

Expected behavior:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/804801/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/805764/content">

N.B. whether or not we adopt the Primer default behavior of indenting "nested fields" is a topic for discussion here: <mention class="mention" data-id="68696" data-type="work_package" data-text="##68696">##68696</mention>

<br>

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

  - Hosted cloud edition

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*en\_GB*
