Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. SOGo
  3. 2fa code issues

2fa code issues

Scheduled Pinned Locked Moved SOGo
6 Posts 4 Posters 847 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      P Offline
      privsec
      wrote on last edited by
      #1

      I now have multiple users experiencing an issue with their 2FA codes that was set up with SOGo.

      How do I have them bypass/reset their accounts?

      I just tried myself, and now my two (personal and business) account is not letting me sign in at sogo.domain.com, I can login in just fine st snappy.domain.com

      BrutalBirdieB girishG 2 Replies Last reply
      0
      • P privsec

        I now have multiple users experiencing an issue with their 2FA codes that was set up with SOGo.

        How do I have them bypass/reset their accounts?

        I just tried myself, and now my two (personal and business) account is not letting me sign in at sogo.domain.com, I can login in just fine st snappy.domain.com

        BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by
        #2

        @privsec
        In the Database it's:

        To see your profile

        SELECT *
        FROM sogo_user_profile
        WHERE c_uid = "your@email.com";
        

        Disable 2FA:

        UPDATE sogo_user_profile
        SET c_defaults = REPLACE(
        c_defaults,
        "\\"SOGoTOTPEnabled\\": 1",
        "\\"SOGoTOTPEnabled\\": 0")
        WHERE c_uid = "your@email.com";
        

        Like my work? Consider donating a drink. Cheers!

        1 Reply Last reply
        3
        • P privsec

          I now have multiple users experiencing an issue with their 2FA codes that was set up with SOGo.

          How do I have them bypass/reset their accounts?

          I just tried myself, and now my two (personal and business) account is not letting me sign in at sogo.domain.com, I can login in just fine st snappy.domain.com

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @privsec usually 2fa errors come from time not being in sync. Can you check the server time?

          P 1 Reply Last reply
          0
          • girishG girish

            @privsec usually 2fa errors come from time not being in sync. Can you check the server time?

            P Offline
            P Offline
            privsec
            wrote on last edited by
            #4

            @girish Sure, but weird thing is all my other 2fa for services work without a problem

            1 Reply Last reply
            0
            • T Offline
              T Offline
              True
              wrote on last edited by
              #5

              For those who still struggle with the SQL method:
              Open up the terminal and just paste in this command to disable Sogo 2FA for a specific mailbox / user

              sogo-tool user-preferences set defaults your@email.com SOGoTOTPEnabled '{"SOGoTOTPEnabled":0}'
              

              @girish this single line of code could be easily added to the documentation: https://docs.cloudron.io/apps/sogo/
              There is nothing there regarding 2FA reset.

              "sogo-tool" is a CLI tool. Comes built in with the deployed image.
              Source for the solution: https://github.com/mailcow/mailcow-dockerized/issues/4490#issuecomment-1052121610

              1 Reply Last reply
              3
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                Added to docs, thanks @True and @BrutalBirdie

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search