Skip to content

Commit

Permalink
fix: Password reminder appearing after onboarding (#59)
Browse files Browse the repository at this point in the history
* Fixed reminder showing up after onboarding

* Fixed lint

* Bump to v12

---------

Co-authored-by: Joel-David <[email protected]>
  • Loading branch information
joeldavidw and jdw-assignment authored Aug 7, 2024
1 parent 5d23f75 commit 17dd693
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Chronos.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 11.0;
MARKETING_VERSION = 12.0;
PRODUCT_BUNDLE_IDENTIFIER = com.joeldavidw.ChronosDevDebug;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -910,7 +910,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 11.0;
MARKETING_VERSION = 12.0;
PRODUCT_BUNDLE_IDENTIFIER = com.joeldavidw.ChronosDevRelease;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1236,7 +1236,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 11.0;
MARKETING_VERSION = 12.0;
PRODUCT_BUNDLE_IDENTIFIER = com.joeldavidw.Chronos;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
4 changes: 4 additions & 0 deletions Chronos/App/MainAppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ struct MainAppView: View {
}

if biometricsEnabled && statePasswordReminderEnabled {
if nextPasswordReminderTimestamp == 0 {
nextPasswordReminderTimestamp = Date().timeIntervalSince1970 + (2 * 7 * 24 * 60 * 60)
}

if Date().timeIntervalSince1970 >= nextPasswordReminderTimestamp {
showPasswordReminder = true
}
Expand Down

0 comments on commit 17dd693

Please sign in to comment.