Skip to content

add setPassword method for updating user passwords #100

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

Closed
wants to merge 5 commits into from

Conversation

MonishK2002
Copy link

Description
This PR introduces a new method setPassword to the Casdoor Java SDK, enhancing the SDK's functionality by enabling the capability to set or change a user's password programmatically.

Reason for Update
Adding the setPassword API to the Casdoor Java SDK provides users with the ability to update passwords directly through the SDK, improving security management and user experience.

Changes Made

  1. Implemented the setPassword method in the Casdoor Java SDK.
  2. Added a Javadoc comment to explain the method's functionality.
  3. Included appropriate logging for success and error scenarios.
  4. Ensured the code is optimized and adheres to best practices.

Testing

  1. Verified that the setPassword method works correctly with valid inputs.
  2. Tested the method with and without the oldPassword parameter to ensure flexibility.
  3. Ran existing tests to ensure no other functionality is broken by the update.

Impact
This update allows users of the Casdoor Java SDK to utilize the setPassword API, facilitating better user management within their applications. No existing functionality is affected by this update.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ MonishK2002
❌ Monish


Monish seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@hsluoyz
Copy link
Member

hsluoyz commented Dec 29, 2024

Replaced by: #101

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

Successfully merging this pull request may close these issues.

3 participants