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: added forgot password #39

Merged
merged 2 commits into from
Sep 21, 2024
Merged

Conversation

prodesert22
Copy link
Member

@prodesert22 prodesert22 commented Sep 12, 2024

SUMMARY

Added forgot password feature to work need to add DORIS_HOST, DORIS_USER, DORIS_PASSWORD in superset config

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

image
image

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@josedev-union josedev-union merged commit a8b9b12 into Ortege-xyz:ortege Sep 21, 2024
0 of 3 checks passed
Copy link
Member

@josedev-union josedev-union left a comment

Choose a reason for hiding this comment

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

I merged it to not block you. It has been deployed on staging.

But I am not comfortable with doris introduction here. Why do we not use the default superset database, postgresql? It is much reasonable and easy to maintain in the long term, isn't it? Doris will be the pre-requisite for studio, just for this forgot pwd func.

Instead, we can define reset_user_password here https://github.com/Ortege-xyz/studio/tree/ortege/superset/models

@HariSeldon23 @prodesert22 what are your thoughts on this?

:param email:
the user.email to send the Email
"""
logger.info(f"email {email}")
Copy link
Member

@josedev-union josedev-union Sep 21, 2024

Choose a reason for hiding this comment

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

could you use logger.debug or remove?

try:
user_id = user.id
resetpw = self.get_reset_password_hash(user_id)
logger.info(f"resetpw {resetpw}")
Copy link
Member

Choose a reason for hiding this comment

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

same here

)

try:
logger.info("Sending message")
Copy link
Member

Choose a reason for hiding this comment

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

same here

Subject="Reset your Ortege studio password",
HtmlBody=message_html
)
logger.info("Sent message")
Copy link
Member

Choose a reason for hiding this comment

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

same here

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