aritra24 commented on code in PR #37044:
URL: https://github.com/apache/airflow/pull/37044#discussion_r1468805989
##########
airflow/providers/fab/auth_manager/security_manager/override.py:
##########
@@ -470,7 +470,9 @@ def reset_password(self, userid, password):
user = self.get_user_by_id(userid)
user.password = generate_password_hash(password)
self.reset_user_sessions(user)
- self.update_user(user)
+ if self.update_user(user) is False:
Review Comment:
I'd done the if false check since None returned by update_user would also be
interpreted as false, changing it to return a true or false should resolve this
as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]