From 0dfda0b2b4a7eb8ea4199b948294e770a6ec31cf Mon Sep 17 00:00:00 2001 From: Rookiestyle Date: Tue, 23 Feb 2021 14:53:59 +0100 Subject: [PATCH] New source location for 2FA checks https://twofactorauth.org has been sold, https://2fa.directory has to be used as replacement for details see https://github.com/2factorauth/twofactorauth/issues/5238 Closes #49 --- src/DAO/TFASites.cs | 11 ++++++++++- src/Properties/AssemblyInfo.cs | 4 ++-- version.info | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/DAO/TFASites.cs b/src/DAO/TFASites.cs index ed4f366..203f177 100644 --- a/src/DAO/TFASites.cs +++ b/src/DAO/TFASites.cs @@ -10,7 +10,16 @@ namespace KeePassOTP { public static class TFASites { - const string TFA_JSON_FILE = "https://twofactorauth.org/api/v2/tfa.json"; + //const string TFA_JSON_FILE = "https://twofactorauth.org/api/v2/tfa.json"; + const string TFA_JSON_FILE_DEFAULT = "https://2fa.directory/api/v2/tfa.json"; + + public static string TFA_JSON_FILE + { + get + { + return KeePass.Program.Config.CustomConfig.GetString("KeePassOTP.TFASiteCheckURL", TFA_JSON_FILE_DEFAULT); + } + } public enum TFAPossible { Unknown, diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index 11c0ab8..0552b1a 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -30,5 +30,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.25.2")] -[assembly: AssemblyFileVersion("0.25.2")] \ No newline at end of file +[assembly: AssemblyVersion("0.26")] +[assembly: AssemblyFileVersion("0.26")] \ No newline at end of file diff --git a/version.info b/version.info index a08e9af..d13a267 100644 --- a/version.info +++ b/version.info @@ -1,5 +1,5 @@ : -KeePassOTP:0.25.2 +KeePassOTP:0.26 KeePassOTP!de:13 KeePassOTP!fr:5 KeePassOTP!pt:4