vincbeck commented on issue #37030:
URL: https://github.com/apache/airflow/issues/37030#issuecomment-2056800300

   > @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?


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to