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

All might legend/issue1963 #3409

Closed

Conversation

AllMightLegend
Copy link

@AllMightLegend AllMightLegend commented Aug 15, 2024

Pull Request Checklist

Signed-off-by: Srinjoy Sen Chowdhury srinjoysen123@gmail.com

Fixes issue#1963

Key Features:
Password Configuration:

The PasswordConfig struct allows customization of the password validation requirements. This can be extended to include more complex policies as needed.
YAML Configuration:

The PasswordConfig struct could be loaded from a YAML file, enabling dynamic adjustment of the password requirements without code changes.
Password Validation:

The ValidatePassword function checks the length, presence of uppercase letters, lowercase letters, digits, and special characters based on the provided configuration.
Sidecar Feature:

A placeholder sidecarLogPasswordValidation function is included, where you could integrate with a logging service to track password validation attempts.
Usage Example:
In a real-world scenario, you would load PasswordConfig from a YAML file or another configuration source and pass it to ValidatePassword when validating user passwords.

This structure makes it easier to manage and enforce password policies while providing flexibility for future changes.

Key Features:
Password Configuration:

The PasswordConfig struct allows customization of the password validation requirements. This can be extended to include more complex policies as needed.
YAML Configuration:

The PasswordConfig struct could be loaded from a YAML file, enabling dynamic adjustment of the password requirements without code changes.
Password Validation:

The ValidatePassword function checks the length, presence of uppercase letters, lowercase letters, digits, and special characters based on the provided configuration.
Sidecar Feature:

A placeholder sidecarLogPasswordValidation function is included, where you could integrate with a logging service to track password validation attempts.

Signed-off-by: AllMightLegend srinjoysen123@gmail.com
@AllMightLegend AllMightLegend requested a review from a team as a code owner August 15, 2024 15:45
@AllMightLegend
Copy link
Author

I am new to open source contribution. I have tried to contribute to matrix-spec previously and due to mistakes I have been given some healthy tips. I have tried to incorporate those tips. Would be happy for more advice so that I can learn more.

@S7evinK
Copy link
Contributor

S7evinK commented Sep 22, 2024

Sorry for closing this, feel free to join #dendrite-dev:matrix.org for further discussion.

@S7evinK S7evinK closed this Sep 22, 2024
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