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

feat: Add Set Password API using Casdoor Java SDK #101

Closed
wants to merge 1 commit into from

Conversation

MonishK2002
Copy link

Summary

This PR introduces the Set Password API integration using the Casdoor Java SDK. It allows users to set a new password for their account.

Reason for Addition

The Set Password API is a critical feature for managing user credentials and is now available through the Casdoor Java SDK. This feature enhances security by enabling users to reset their passwords programmatically.

Changes Made

  • Integrated the Set Password API from the Casdoor Java SDK.
  • Updated relevant service layers and controllers to include the set password functionality.
  • Added error handling and validation for the Set Password API.

Testing

  • Verified the Set Password API functionality by testing various scenarios, including valid and invalid password changes.
  • Ran existing tests to ensure no other functionality was impacted by the new addition.

Impact

This update allows Spring Boot applications using the Casdoor Java SDK to set passwords for users securely, providing enhanced user management capabilities.

### Summary
This PR introduces the Set Password API integration using the Casdoor Java SDK. It allows users to set a new password for their account.

### Reason for Addition
The Set Password API is a critical feature for managing user credentials and is now available through the Casdoor Java SDK. This feature enhances security by enabling users to reset their passwords programmatically.

### Changes Made
- Integrated the Set Password API from the Casdoor Java SDK.
- Updated relevant service layers and controllers to include the set password functionality.
- Added error handling and validation for the Set Password API.

### Testing
- Verified the Set Password API functionality by testing various scenarios, including valid and invalid password changes.
- Ran existing tests to ensure no other functionality was impacted by the new addition.

### Impact
This update allows Spring Boot applications using the Casdoor Java SDK to set passwords for users securely, providing enhanced user management capabilities.
import java.io.IOException;
import java.util.List;

public class UserService extends Service {

private static final Logger LOGGER = LoggerFactory.getLogger(UserService.class);
Copy link
Member

Choose a reason for hiding this comment

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

Follow the existing code style. Don't use Logger

@MonishK2002 MonishK2002 deleted the patch-9 branch December 29, 2024 16:22
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.

2 participants