-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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}") |
There was a problem hiding this comment.
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}") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
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
ADDITIONAL INFORMATION