From c4744d11480003a92fdfea12e79129affe6288c7 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 28 Apr 2021 21:32:33 +0200 Subject: [PATCH] Update debug-reset_pw.md --- docs/debug-reset_pw.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/debug-reset_pw.md b/docs/debug-reset_pw.md index 3f14e8687..149d73124 100644 --- a/docs/debug-reset_pw.md +++ b/docs/debug-reset_pw.md @@ -77,9 +77,17 @@ MariaDB [(none)]> FLUSH PRIVILEGES; ## Remove Two-Factor Authentication +### For mailcow WebUI: + This works similar to resetting a MySQL password, now we do it from the host without connecting to the MySQL CLI: ``` source mailcow.conf docker-compose exec mysql-mailcow mysql -u${DBUSER} -p${DBPASS} ${DBNAME} -e "DELETE FROM tfa WHERE username='YOUR_USERNAME';" ``` + +### For SOGo: + +``` +docker-compose exec -u sogo sogo-mailcow sogo-tool user-preferences set defaults user@example.com SOGoGoogleAuthenticatorEnabled '{"SOGoGoogleAuthenticatorEnabled":0}' +```