from os import getenv
from airflow import models, settings
from airflow.contrib.auth.backends.password_auth import PasswordUser
AIRFLOW_WEB_UI_PASSWORD = getenv('AIRFLOW_WEB_UI_PASSWORD')
user = PasswordUser(models.User())
user.username = 'airflow'
user._set_password = AIRFLOW_WEB_UI_PASSWORD
session = settings.Session()
session.add(user)
session.commit()
session.close()

3e6fd5f8628451902937ad8b036ac901734247fe
<mask token>

<mask token>
session.add(user)
session.commit()
session.close()

<mask token>
AIRFLOW_WEB_UI_PASSWORD = getenv('AIRFLOW_WEB_UI_PASSWORD')
user = PasswordUser(models.User())
user.username = 'airflow'
user._set_password = AIRFLOW_WEB_UI_PASSWORD
session = settings.Session()
session.add(user)
session.commit()
session.close()

from os import getenv
from airflow import models, settings
from airflow.contrib.auth.backends.password_auth import PasswordUser
AIRFLOW_WEB_UI_PASSWORD = getenv('AIRFLOW_WEB_UI_PASSWORD')
user = PasswordUser(models.User())
user.username = 'airflow'
user._set_password = AIRFLOW_WEB_UI_PASSWORD
session = settings.Session()
session.add(user)
session.commit()
session.close()
