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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Initial change email / passphrase problem

    Discourse
    3
    5
    147
    Loading More Posts
    • 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.
    • L
      LoudLemur last edited by LoudLemur

      First setup instructions ask us to immediately change the admin email address and the passphrase.

      On trying to add an additional email to use as the default for admin, Discourse tries and fails to send an email.

      Screenshot_20220828_123243.png

      It is not possible to change the passphrase as link is sent to the default email address.

      Screenshot_20220828_122800.png

      BrutalBirdie 1 Reply Last reply Reply Quote 0
      • BrutalBirdie
        BrutalBirdie Staff @LoudLemur last edited by

        @LoudLemur
        https://docs.cloudron.io/apps/discourse/

        
        Changing root account email
        
        The email of the root account is root@cloudron.local. Discourse sends an activation email to the old email address to switch email. Since we don't have access to the default email account, we have to use the rails console to switch the email.
        
        Open a Web terminal and run the following commands:
        
        # sudo -E -u root bundle exec script/rails console
        irb(main):001:0> u = User.find_by_username("root")
        irb(main):002:0> u.email = "YOUR_NEW_EMAIL_ADDRESS"
        irb(main):003:0> u.email_tokens.create(email: u.email)
        irb(main):004:0> u.save!
        

        Like my work? Consider donating a beer 🍻 Cheers!

        L 1 Reply Last reply Reply Quote 0
        • L
          LoudLemur @BrutalBirdie last edited by LoudLemur

          @BrutalBirdie said in Discourse: initial change email / passphrase problem:

          @LoudLemur
          https://docs.cloudron.io/apps/discourse/

          
          Changing root account email
          
          The email of the root account is root@cloudron.local. Discourse sends an activation email to the old email address to switch email. Since we don't have access to the default email account, we have to use the rails console to switch the email.
          
          Open a Web terminal and run the following commands:
          
          # sudo -E -u root bundle exec script/rails console
          irb(main):001:0> u = User.find_by_username("root")
          irb(main):002:0> u.email = "YOUR_NEW_EMAIL_ADDRESS"
          irb(main):003:0> u.email_tokens.create(email: u.email)
          irb(main):004:0> u.save!
          

          Thanks! Nothing seems to be working for me today, unfortunately. Whn I open the terminal, it looks like this:
          Screenshot_20220828_143123.png

          robi 1 Reply Last reply Reply Quote 0
          • robi
            robi @LoudLemur last edited by

            @LoudLemur use a different browser, Firefox may have this issue with certain plugins.

            Life of Advanced Technology

            L 1 Reply Last reply Reply Quote 1
            • L
              LoudLemur @robi last edited by

              @robi said in Discourse: initial change email / passphrase problem:

              @LoudLemur use a different browser, Firefox may have this issue with certain plugins.

              thanks. using a chromium based browser did indeed solve this issue. there is something similar to this if you try and view windy.com in a mozilla browser, the animated wind arrows just disappear and it is streaks of lines across the map.

              the whole interent seems to be degenerating into a 'only usable in google products' hell-hole.

              1 Reply Last reply Reply Quote 0
              • Topic has been marked as a question  nebulon nebulon 
              • Topic has been marked as solved  nebulon nebulon 
              • First post
                Last post
              Powered by NodeBB