Skip to content

Commit dabb092

Browse files
committed
custom: disable export password expiry
1 parent c8534b0 commit dabb092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

implementation/src/main/kotlin/app/aaps/implementation/protection/ExportPasswordDataStoreImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class ExportPasswordDataStoreImpl @Inject constructor(
6161

6262
// On enabling & password expiry (fixed defaults)
6363
private var exportPasswordStoreIsEnabled = false // Set from prefs, disabled by default
64-
private var passwordValidityWindow: Long = 35 * 24 * 3600 * 1000L // 5 weeks (including grace period)
65-
private var passwordExpiryGracePeriod: Long = 7 * 24 * 3600 * 1000L // 1 week
64+
private var passwordValidityWindow: Long = 3650 * 24 * 3600 * 1000L // 10 years (including grace period)
65+
private var passwordExpiryGracePeriod: Long = 365 * 24 * 3600 * 1000L // 1 year
6666
}
6767

6868
// Declare DataStore

0 commit comments

Comments
 (0)