Add option to enter a otpauth:// URI in the TotpSetupDialog#13048
Add option to enter a otpauth:// URI in the TotpSetupDialog#13048Max-F-Helm wants to merge 1 commit intokeepassxreboot:developfrom
Conversation
|
For anyone looking to still use this before the PR lands, you can add an Also while I'm at it, would it be a good idea to add a protocol handler for Edit: Oh well, @scarlion1 has already mentioned this workaround, funny how I missed it: #4825 (comment) |
|
The protocol handler idea sounds good. But as I have no knowledge how these things work (on all platforms) I would like to get feedback from the maintainers if this is a useful addition, before I spend time digging through all necessary documentation. |
This PR adds the option to use OTP URIs in the TotpSetupDialog. This does not implement all of #4825, but it is a start.
On save, the URI is parsed and the parameters are stored as custom settings.
The changes also include some refactoring inside
TotpSetupDialog.cppto separate the setting creation of every mode.Screenshots
Testing strategy
The change was tested by using a URI from a real auth manager which supports TOTP.
Entering of an invalid URI was also tested.
The code itself has no unit-tests as most of it is UI and the part where the URI is parsed was taken from
Totp::parseSettings().Type of change