Skip to content

Commit

Permalink
Fix reset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Sep 30, 2024
1 parent 87de11a commit 087222a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Guard.Core/Storage/Reset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ public static void DeleteEverything()
{
string path = InstallationContext.GetAppDataFolderPath();
Database.Deinit();
_ = WindowsHello.Unregister();
Auth.DeleteWindowsHelloProtectedKey();

if (Auth.IsWindowsHelloRegistered())
{
_ = WindowsHello.Unregister();
Auth.DeleteWindowsHelloProtectedKey();
}

string[] files = ["auth-keys", "settings", "TokenDatabase.db", "TokenDatabase-log.db"];
string[] dirs = ["icons"];
Expand Down

0 comments on commit 087222a

Please sign in to comment.