My airflow version is v.1.10.1 and I am using python 3.5.2
I tried user._set_password but after looking at the users db table the password field is null…
After looking at the source, the following works for me.
from flask_bcrypt import generate_password_hash user._password = generate_password_hash('your_password', 12)
Be sure to use SSL.