teamclairvoyant/airflow-user-management-plugin

Can't update user password.

Closed this issue · 3 comments

I changed my password, but show error.

Node: work-pc

Traceback (most recent call last):
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask_admin/base.py", line 69, in inner
return self._run_view(f, *args, **kwargs)
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask_admin/base.py", line 368, in _run_view
return fn(self, *args, **kwargs)
File "/home/u01/airflow/env/lib/python3.4/site-packages/flask_admin/model/base.py", line 1974, in edit_view
if self.update_model(form, model):
File "/home/u01/airflow/plugins/airflow-user-management-plugin/plugins/user_management_plugin.py", line 96, in update_model
logging.info("form.password_confirm: " + str(form.password_confirm))
AttributeError: 'PasswordUserForm' object has no attribute 'password_confirm'

i try change code:
user_management_plugin.py
line 96:
# logging.info("form.password_confirm: " + str(form.password_confirm))

Then it runs fine.

y2kconnect have you found any workaround for this issue ? facing same issue .

@ashishpatil-TML @y2kconnect I have fixed this issue and added some base security to my fork of this plugin https://github.com/balaramachandran/airflow-user-management-plugin

Regards !

@y2kconnect @ashishpatil-TML This issue has been taken in the latest release #3