Skip to content

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
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 rullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 31, 2018
@rullzer rullzer force-pushed the feature/password_confirmation_backend branch from 9f6327b to d8fb024 Compare November 2, 2018 11:33
@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 <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
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 <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: Roeland Jago Douma <[email protected]>
@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.

6 participants