I have fixed the quick 'hack' and now added the ability to Opt-In to get a TOTP token.
Furthermore, it was not possible to get the new token with get_attributes() after the time has run out.
I also tried reloading the whole database which did not seem to work.
As such, I had to include a library which generates the TOTP when pressing Ctrl + t.
The feature can be activated by setting view_totp = True.
The following library is needed to generate the TOTP: pyotp
It is to note, that the library is only needed when copying a TOTP token and would not be needed if deactivated. (Check source code)
It is really unfortunate that one cannot obtain the current OTP via KeePass directly and has to use an additional library. However, I agree that this is probably the best workaround :thinking:
Hi all,
I have fixed the quick 'hack' and now added the ability to Opt-In to get a TOTP token. Furthermore, it was not possible to get the new token with get_attributes() after the time has run out. I also tried reloading the whole database which did not seem to work. As such, I had to include a library which generates the TOTP when pressing Ctrl + t.
The feature can be activated by setting view_totp = True.
The following library is needed to generate the TOTP:
pyotp
It is to note, that the library is only needed when copying a TOTP token and would not be needed if deactivated. (Check source code)Cheers