Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External user can reset password #2030

Closed
alve89 opened this issue Nov 6, 2016 · 8 comments
Closed

External user can reset password #2030

alve89 opened this issue Nov 6, 2016 · 8 comments

Comments

@alve89
Copy link

alve89 commented Nov 6, 2016

Hey guys,

I just noticed external users (authenticating against IMAP in my case) are not able to reset their invalid / lost password. They just get

Wrong password.

without

Reset it?

I think it was great to be able to just set up an URL that performs the external password reset instead of nextCloud. So the user gets its email with the reset-link, enters its password and uuid, password and the existing reset token are sent to the specified external server. This server checks if the token is valid and resets the pasword.

So the only cost for you was to allow the user to reset its password to be able to enter a new one like a normal internal user.

If this wasn't interesting, please tell me where I can set "canResetPassword" to true for external users as well, because I didn't find the right place in the code.

Thank you!

@MariusBluem
Copy link
Member

MariusBluem commented Nov 6, 2016

You can set it in your config.php: https://github.com/nextcloud/server/blob/master/config/config.sample.php#L237

...you can specify an URL there to your IMAP user manager (for example), where your users can reset their passwords 😉 ...does this solve the problem for you 🤔

@alve89
Copy link
Author

alve89 commented Nov 6, 2016

Yes, great, didn't know that! 😄 😄 Thank you!

@alve89
Copy link
Author

alve89 commented Nov 6, 2016

BUT: Where can I set that called URL should contain some parameters (username, may be a token like it's set when resetting via email)?

@MariusBluem
Copy link
Member

I think this is not possible 😁

@nickvergessen nickvergessen changed the title Feature Request: External ueser can reset password External user can reset password Nov 7, 2016
@nickvergessen
Copy link
Member

Yeah, as @MariusBluem already said, that is not possible.
Basically your user management system should provide the full set of things to reset a users password and then you can use the linked feature.

Other then that, nothing more we can do.

@alve89
Copy link
Author

alve89 commented Nov 15, 2016

I think an enhancement was to use this link only for external users because Nextcloud already has a method to reset passwords of users directly within Nextcloud via email.
What do you think?

@nickvergessen
Copy link
Member

Well in general production instances should have users only in 1 user backend (apart from the first admin account). Otherwise you can run into a series of problems.

@TommiHil
Copy link

TommiHil commented Jun 8, 2023

I had the same error on my site https://tawjihi-jo.com/

but it was solved as you described above: we specified the URL of our manager and now our users can reset their accesses - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants