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 Reset password from nextcloud app

    Nextcloud
    5
    9
    313
    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.
    • andres.moya
      andres.moya last edited by

      In my cloudron setup, at the login screen of the nextcloud app there is a "Forgot password" link. It would be useful for people that directly go to this app, without navigating first to the cloudron panel (a very common usage in my organization), and don't remember their Cloudron password.

      But currently this link navigates to https://my.site.org/api/v1/session/password/resetRequest.html, and this url does not exist and generates a 404 error.

      I have found that, in the file /app/code/config/config.php I can change the parameter lost_password_link to change the url to navigate to change password. I'd like to redirect to the reset password page of the Cloudron box, but I've found that this page has no url. If you go to https://my.site.org/login.html, there is a "Reset password" link, but it shows the form in the same page.

      Is there a way to navigate from outside the box directly to the reset password form? Thanks.

      nebulon 1 Reply Last reply Reply Quote 2
      • nebulon
        nebulon Staff @andres.moya last edited by

        @andres-moya as far as I can see, the package does not set this password reset url by default. Also you are right, that url is the old removed one and the login.html is the new and correct url.
        To jump directly to password reset, just append ?passwordReset.

        As an example the url then would be:

        https://my.example.com/login.html?passwordReset

        jdaviescoates 1 Reply Last reply Reply Quote 2
        • jdaviescoates
          jdaviescoates @nebulon last edited by

          @nebulon perhaps the Cloudron Nextcloud app have lost_password_link in /app/code/config/config.php pre-configured to be https://my.example.com/login.html?passwordReset ? (although I guess people using it without LDAP wouldn't want that).

          At the very least I think instructions for how to edit lost_password_link in /app/code/config/config.php to make it https://my.example.com/login.html?passwordReset ought to be added to the Cloudron Nextcloud docs at https://docs.cloudron.io/apps/nextcloud/

          Thanks!

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            Yes I was thinking the same, however then I saw that this used to be the case actually and got removed with https://git.cloudron.io/cloudron/nextcloud-app/-/commit/b84aa70403aa8363bfedfb4088a4f62839e575ae @girish do you remember the reason?

            Also this is likely the root cause why @andres-moya sees the old url, most likely the app instance is quite old then.

            girish 1 Reply Last reply Reply Quote 1
            • girish
              girish Staff @nebulon last edited by

              @nebulon Yes, the password reset link does not work without LDAP. Even with LDAP, it does not work for local users (since nextcloud allows multiple auth sources).

              andres.moya 1 Reply Last reply Reply Quote 0
              • andres.moya
                andres.moya @girish last edited by

                @girish Thanks, it works now with ?passwordReset.

                For me the problem is solved. You are true, my nextcloud installation si some years old. Don't know why did you remove it, but yes, think that will be useful to talk about it in nextcloud app documentation.

                jdaviescoates 1 Reply Last reply Reply Quote 0
                • jdaviescoates
                  jdaviescoates @andres.moya last edited by

                  @andres-moya said in Reset password from nextcloud app:

                  Don't know why did you remove it,

                  Cloudron have no access to your server so they can't remove anything.

                  But perhaps you used to subscribe to Cloudron and now don't (and hence why your Nextcloud has not updated)?

                  I use Cloudron with Gandi & Hetzner

                  fbartels 1 Reply Last reply Reply Quote 0
                  • fbartels
                    fbartels App Dev @jdaviescoates last edited by

                    @jdaviescoates I think you misunderstood. Its removed from the configuration for new app installations. But if you have installed the Nextcloud app before february 2020, then your app is still configured with the old link.

                    Nothing was changed on an already installed app (seeing this thread I also manually updated the link to the new password reset).

                    1 Reply Last reply Reply Quote 3
                    • girish
                      girish Staff last edited by

                      I added doc for this - https://docs.cloudron.io/apps/nextcloud/#password-reset-link

                      1 Reply Last reply Reply Quote 2
                      • First post
                        Last post
                      Powered by NodeBB