Skip to content

Commit

Permalink
Merge pull request #535 from pyfarm/fix_flask_login
Browse files Browse the repository at this point in the history
Lock Flask-Login to >=0.3.0,<0.4.0
  • Loading branch information
opalmer committed Sep 22, 2015
2 parents 713a15b + cce9e8a commit a4068ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pyfarm/master/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def login_page():

def logout_page():
"""log out the user then redirect them"""
logged_in = current_user.is_authenticated()
logged_in = current_user.is_authenticated
if logged_in:
logout_user()

Expand Down
7 changes: 0 additions & 7 deletions pyfarm/master/templates/pyfarm/user_interface/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@
<li class="{% block software_nb_class %}{% endblock %}"><a href="{{ url_for('software_index_ui')}}">Software</a></li>
<li class="{% block statistics_nb_class %}{% endblock %}"><a href="{{ url_for('statistics_index_ui')}}">Statistics</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
{% if current_user.is_anonymous() %}
<li><a href="/login">Login</a></li>
{% else %}
<li><a href="/logout">Logout</a></li>
{% endif %}
</ul>
</div>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"pyfarm.core>=0.9.3",
"sqlalchemy>=0.9.9,!=1.0.0,!=1.0.1,!=1.0.2",
"flask",
"flask-login",
"flask-login>=0.3.0,<0.4.0",
"flask-sqlalchemy>=0.12",
"itsdangerous",
"blinker",
Expand Down

0 comments on commit a4068ca

Please sign in to comment.