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

Documentation for forgotten password workflow #47

Closed ClaskoTheKnight closed 1 month ago

ClaskoTheKnight commented 3 months ago

I forgot my OTP unlocking password, and I couldn't find any easily available documentation about how to reset the particular user's OTP credentials, even if it wouldn't allow them to access their old OTP passwords.

betabrandao commented 3 months ago

Well, i deleted the issued user from database, without losing all accounts:

delete from oc_otpmanager_accounts where user_id = 'NEXTCLOUD_USER_ID'; delete from oc_otpmanager_settings where user_id = 'NEXTCLOUD_USER_ID';

gudini-nsk commented 2 months ago

if you update just: delete from oc_otpmanager_settings where user_id = 'NEXTCLOUD_USER_ID'; user can recreate password.