Skip to content

Add a Reset Password button under Security > List Users > Edit user #37030

Closed

Description

@ecerulm

Description

Currently the way to reset the password via the UI is to go to Security > List Users > Show record (loupe icon) > Show User > Reset Password

I think it's counterintuitive that the reset password button is only there, and not in under the Edit record > Edit User

So I believe it would be better if the reset password button is show in both Show User and Edit User.

Use case/motivation

It will be more intuitive. At least for in my case I couldn't find until I was told in #37009 (comment) that that button exist.

The "reset password" button itself is not very well documented, at least the google query site:airflow.apache.org "reset password" does not find any reference to it.

Hopefully a more prominent place in the UI will reduce some of the confusion. I also tried to document "reset password" in stackoverflow at least https://stackoverflow.com/a/77886646/90580

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Jan 26, 2024
  2. added and removed
    needs-triage
    on Jan 26, 2024
  3. eladm26 commented on Jan 29, 2024

    @eladm26

    Hi @ecerulm
    Would love to take this one as a first issue

  4. potiuk commented on Jan 30, 2024

    @potiuk
    Member

    Feel free

  5. poorvirohidekar commented on Apr 9, 2024

    @poorvirohidekar
    Contributor

    @potiuk - I would like to try my hand at this. Can you please assign it to me?

  6. poorvirohidekar commented on Apr 11, 2024

    @poorvirohidekar
    Contributor

    @bbovenzi - I have been looking into the www/ folder but am unable to find the UI code for this. Can you please point me in the right direction?

  7. aritra24 commented on Apr 11, 2024

    @aritra24
    Collaborator

    @poorvirohidekar I believe it's part of the Flask app builder library, I believe the change would either have to be in flask app builder itself, or you'd have to override some of the methods and templates used to support edit to have a reset password field. Though I'm not too familiar with this part but on a high level look that's what it looks like.

  8. poorvirohidekar commented on Apr 14, 2024

    @poorvirohidekar
    Contributor

    @aritra24 - Yup, I was checking out the same.
    @vincbeck - I was actually looking into this edit view implementation. https://github.com/apache/airflow/blob/main/airflow/www/views.py#L3654 and I tried adding a widget

          if not widgets:
               return self.post_edit_redirect()
           else:
               reset_password_button = ResetPasswordView()
               widgets["edit"].append(reset_password_button)
               return self.render_template(
                   self.edit_template,
                   title=self.edit_title,
                   widgets=widgets,
                   related_views=self._related_views,
               )
    

    But this doesnt not seem to be adding the resetpassword button. Can you please point me in the right direction here? I am running the breeze start_airflow --dev-mode command to build this. Can you please tell me if this is the right way?

  9. aritra24 commented on Apr 14, 2024

    @aritra24
    Collaborator

    I believe it might need to be added as an action rather than a new widget. But also I think the edit template might not take actions you'd have to check that.

  10. vincbeck commented on Apr 15, 2024

    @vincbeck
    Contributor

    @aritra24 - Yup, I was checking out the same. @vincbeck - I was actually looking into this edit view implementation. https://github.com/apache/airflow/blob/main/airflow/www/views.py#L3654 and I tried adding a widget

          if not widgets:
               return self.post_edit_redirect()
           else:
               reset_password_button = ResetPasswordView()
               widgets["edit"].append(reset_password_button)
               return self.render_template(
                   self.edit_template,
                   title=self.edit_title,
                   widgets=widgets,
                   related_views=self._related_views,
               )
    

    But this doesnt not seem to be adding the resetpassword button. Can you please point me in the right direction here? I am running the breeze start_airflow --dev-mode command to build this. Can you please tell me if this is the right way?

    This is not the view for edit user information. The view is CustomUserInfoEditView in airflow/providers/fab/auth_manager/views/user_edit.py. I am not entirely sure how to do it, but there must be a way to customize this view using Flask App Builder. Maybe following @aritra24 suggestion?

  11. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @poorvirohidekar We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  12. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @eladm26 We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  13. added a commit that references this issue on Sep 21, 2026
    df145d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions