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

Expose password confirmation capabilities in the user backend #11786

Merged
merged 5 commits into from
Nov 5, 2018

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Oct 11, 2018

This will allow user backends to expose if a users password can be validated. This can be useful in several places and allows us to proper do instanceof checks instead of magic string comparisons.

@blizzz as discussed.

@rullzer rullzer added this to the Nextcloud 15 milestone Oct 11, 2018
@@ -108,6 +108,13 @@ public function getHome();
*/
public function getBackendClassName();

/**
* Get the backend for the ccurrent user object
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@rullzer
Copy link
Member Author

rullzer commented Nov 2, 2018

All done.
Added a commit to have the property also set properly in the JS

On some backends (saml for example) users can't revalidate their
passwords as Nextcloud has no way to do verify it.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
If the userbackend doesn't allow validating the password for a given uid
then there is no need to perform this check.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer force-pushed the feature/password_confirmation_backend branch from d8fb024 to 90c4b7d Compare November 2, 2018 12:45
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code makes sense 👍 Tested and works 🎉

@MorrisJobke MorrisJobke merged commit 411d2de into master Nov 5, 2018
@MorrisJobke MorrisJobke deleted the feature/password_confirmation_backend branch November 5, 2018 23:44
@MorrisJobke
Copy link
Member

[ ] once this is in we should implement #12085 with this approach here

@rullzer Is there already a ticket for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants