Merge pull request #412 from michaelschattgen/feature/increase-reminder-period

Increase password reminder period to 30 days
This commit is contained in:
Alexander Bakker 2020-05-13 09:17:46 +02:00 committed by GitHub
commit 4c60b04057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ public class Preferences {
public boolean isPasswordReminderNeeded() {
long diff = new Date().getTime() - getPasswordReminderTimestamp().getTime();
long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);
return isPasswordReminderEnabled() && days >= 7;
return isPasswordReminderEnabled() && days >= 30;
}
public Date getPasswordReminderTimestamp() {