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

Improve Error Message for Invalid Password #177

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

AjaySDwivedi1
Copy link
Contributor

No description provided.

PlatformUserModel.create_user method
@@ -106,8 +106,14 @@ def create_user(
)
else:
if not cls.validate_password(password):
message = "Invalid password. Password must follow rules xyz"
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

@AjaySDwivedi1 We don't need to remove the else block here, we can just update the message string

@shahharsh176 shahharsh176 requested a review from kc-diabeat April 8, 2024 12:19
@shahharsh176 shahharsh176 added this to the v0.2.0 milestone Apr 8, 2024
@kc-diabeat kc-diabeat merged commit 2ffe2db into Healthlane-Technologies:main Apr 8, 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.

Improve Error Message for Invalid Password in PlatformUserModel.create_user method
3 participants