matteo-convertino / otpmanager-nextcloud

Nextcloud app that allows you to manage your OTP (TOTP/HOTP) codes easily
GNU Affero General Public License v3.0
25 stars 5 forks source link

Sharing OTP code using password is not working #49

Open emaddaou opened 2 months ago

emaddaou commented 2 months ago

Thank you again for the great Plugin;

I wanted to share an OTP with family member, when asked to set a password I did and shared the password with my family member, however, when they use it to unlock the OTP code, it keeps saying that the password is not valid or it's not unlocking the OTP code, no matter how many times and what type of password I choose, still my family member can't unlock the OTP code;

Is it possible to make the password an optional choice here? We really don't need password to lock and unlock the code since my family member already using their password to unlock the OTP vault;

I look forward for your response at your earliest convenience;

matteo-convertino commented 1 month ago

I'm sorry if I answer only now. The sharing password is required to allow the functionality to work. It doesn't seem to have ever happened as a problem, do you see any errors in the nextcloud logs?

"or it's not unlocking the OTP code?"

What do you mean by this? There should only be one error, namely that the password is wrong.

Just to be sure, as silly as it may seem, the process should go something like this:

hdwverden commented 1 month ago

I'm running in the same issue. It gets stuck trying to unlock the shared OTP.

The log shows the following error: OCA\OtpManager\Controller\SharedAccountApiController::unlock(): Argument #1 ($accountId) must be of type int, null given, called in [cloud URL]/lib/private/AppFramework/Http/Dispatcher.php on line 232 in file '[cloud URL]/apps/otpmanager/lib/Controller/SharedAccountApiController.php' line 42