Skip to content

Commit

Permalink
apache#326 default_login.py does not work out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Aug 28, 2015
1 parent 6e39013 commit 9411e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/default_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def login(self, request):
username=DEFAULT_USERNAME,
is_superuser=True)
session.merge(user)
session.expunge_all()
session.commit()
session.close()
flask_login.login_user(user)
session.commit()
session.close()
return redirect(request.args.get("next") or url_for("index"))

0 comments on commit 9411e30

Please sign in to comment.