From 4eeb2be36adc1d1e24bca59a339fa0afd6449514 Mon Sep 17 00:00:00 2001 From: Mostafa Galal <77402549+MostafaGalal1@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:44:15 +0300 Subject: [PATCH] fix: Negative values allowed by spinners of Login Lifetimes inputs (#8694) # Which Problems Are Solved Previously, the login lifetime input fields allowed negative values and, in some cases, zero values, which were not valid according to the business rules. # How the Problems Are Solved The issue was resolved by adding min and step properties to the relevant HTML input fields. This ensures that only valid values are entered, adhering to the specific requirements for each field. Co-authored-by: Max Peintner --- .../login-policy/login-policy.component.html | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/console/src/app/modules/policies/login-policy/login-policy.component.html b/console/src/app/modules/policies/login-policy/login-policy.component.html index 622fd84b8..4a059c53f 100644 --- a/console/src/app/modules/policies/login-policy/login-policy.component.html +++ b/console/src/app/modules/policies/login-policy/login-policy.component.html @@ -155,7 +155,7 @@ > {{ 'DESCRIPTIONS.SETTINGS.LOGIN.LIFETIMES.LABEL' | translate }} - + {{ 'DESCRIPTIONS.SETTINGS.LOGIN.LIFETIMES.LABEL' | translate }} - + {{ 'DESCRIPTIONS.SETTINGS.LOGIN.LIFETIMES.LABEL' | translate }} - + {{ 'DESCRIPTIONS.SETTINGS.LOGIN.LIFETIMES.LABEL' | translate }} - + {{ 'DESCRIPTIONS.SETTINGS.LOGIN.LIFETIMES.LABEL' | translate }} - +