Reset will not work in Matomo

If I place Linux command it will throw message like:

$ ./console twofactorauth:disable-2fa-for-user --login=XXX
-bash: ./console: No such file or directory

How to solve this? I boder with this 14 days.


You need use the correct path to the config file in the Matomo directory.

Alternatively you can also edit the piwik_user or matomo_user database table and remove the text in the twofactor_secret column for the user.

It is inside root console file. So, I guess this is the correct path.
Also, usually it should be shown Matomo token like Github is shown as a separate token. You know which token is for the particular source. As I understand Matomo does not support this option.

I see inside table it contains token_auth and twofactor_secret
Which value should be empty as two factor auth. is enabled inside Matomo. I do not like to corrupt database as there are security keys in the case of failures.

Don’t modify the token_auth. The twofactor_secret can be erased as it is only used for 2-factor-auth.

This finally works. Mobile phone detected value. Thank you.