Author Topic: How to disable 2FA for dedicated user  (Read 80 times)

Offline cmonty14

  • Newbie
  • *
  • Posts: 3
How to disable 2FA for dedicated user
« on: February 21, 2020, 04:08:29 AM »
Hi,
I need to disable 2FA for a dedicated user because this user has lost his authentication code.
The intention is to allow this user to login with password only and then create a new 2FA authentication code.

Can you please advise how to disable 2FA for a user?

THX

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,360
Re: How to disable 2FA for dedicated user
« Reply #1 on: Today at 03:21:44 AM »
Please contact the author of the 2FA plugin you are using or your email provider.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cmonty14

  • Newbie
  • *
  • Posts: 3
Re: How to disable 2FA for dedicated user
« Reply #2 on: Today at 06:35:24 AM »
The author of the plugin provides this solution:
"Remove from the roundcube DB users.preferences the 2fa configuration."

However, I don't know the correct SQL syntax for this to apply.

Please advise.

THX

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,360
Re: How to disable 2FA for dedicated user
« Reply #3 on: Today at 09:24:55 AM »
There is a script called bin/moduserprefs.sh which is shipped with Roundcube which can be used to modify a specific users' preferences.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cmonty14

  • Newbie
  • *
  • Posts: 3
Re: How to disable 2FA for dedicated user
« Reply #4 on: Today at 01:40:06 PM »
Thanks.

But how must I use this script in order to disable 2FA for specific user?