mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
allow disabling password aging rule (#10867)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
)
|
||||
|
||||
async function changePasswordAgingRules (val: number | undefined): Promise<void> {
|
||||
passwordAgingRule = Math.max(val ?? 1, 1)
|
||||
passwordAgingRule = val !== undefined ? Math.max(val, 1) : undefined
|
||||
await accountClient.updatePasswordAgingRule(passwordAgingRule)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user