Skip to content

Commit

Permalink
Respect URL overrides configured in Keepass
Browse files Browse the repository at this point in the history
  • Loading branch information
Rookiestyle committed Nov 21, 2020
1 parent 3822ea0 commit b8d58f4
Show file tree
Hide file tree
Showing 9 changed files with 962 additions and 929 deletions.
15 changes: 9 additions & 6 deletions src/KeePassOTP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Util.cs" />
<Compile Include="Util.cs" />
<Compile Include="KeePassOTP.cs" />
<Compile Include="KeePassOTPColumnProvider.cs" />
<Compile Include="KeePassOTPExt.cs" />
Expand All @@ -96,7 +96,6 @@
<Compile Include="Options.Designer.cs">
<DependentUpon>Options.cs</DependentUpon>
</Compile>
<Compile Include="PluginTools.cs" />
<Compile Include="PluginTranslation.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\Resources.Designer.cs">
Expand All @@ -105,6 +104,10 @@
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="DAO\TFASites.cs" />
<Compile Include="Utilities\Debug.cs" />
<Compile Include="Utilities\Tools_Controls.cs" />
<Compile Include="Utilities\Tools_Main.cs" />
<Compile Include="Utilities\Tools_Options.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
Expand Down Expand Up @@ -133,9 +136,9 @@
Using the reference to KeePass is a workaround and saves us from doing ExcludeFromPlgx for KeePass
-->
<PlgxReference>bin\Release\protobuf-net.dll</PlgxReference>
<PlgxReference>bin\Release\zxing.dll</PlgxReference>
<PlgxReference>bin\Release\zxing.presentation.dll</PlgxReference>
</ProjectReference>
<PlgxReference>bin\Release\zxing.dll</PlgxReference>
<PlgxReference>bin\Release\zxing.presentation.dll</PlgxReference>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\qr-code.png" />
Expand All @@ -151,7 +154,7 @@
</PackageReference>
<PackageReference Include="ZXing.Net">
<Version>0.16.6</Version>
<ExcludeFromPlgx />
<ExcludeFromPlgx />
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
6 changes: 1 addition & 5 deletions src/KeePassOTPColumnProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ public override void PerformCellAction(string strColumnName, PwEntry pe)
string url = pe.Strings.ReadSafe(PwDefs.UrlField);
string target = TFASites.GetTFAUrl(url);
PluginDebug.AddInfo("Show 2FA instructions", 0, "URL: " + target);
try
{
System.Diagnostics.Process.Start(target);
}
catch { }
try { Tools.OpenUrl(target); } catch { }
}

public void StartTimer()
Expand Down
Loading

0 comments on commit b8d58f4

Please sign in to comment.