mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-25 00:06:08 +00:00
Merge pull request #412 from michaelschattgen/feature/increase-reminder-period
Increase password reminder period to 30 days
This commit is contained in:
commit
4c60b04057
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ public class Preferences {
|
||||||
public boolean isPasswordReminderNeeded() {
|
public boolean isPasswordReminderNeeded() {
|
||||||
long diff = new Date().getTime() - getPasswordReminderTimestamp().getTime();
|
long diff = new Date().getTime() - getPasswordReminderTimestamp().getTime();
|
||||||
long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);
|
long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);
|
||||||
return isPasswordReminderEnabled() && days >= 7;
|
return isPasswordReminderEnabled() && days >= 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getPasswordReminderTimestamp() {
|
public Date getPasswordReminderTimestamp() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue