Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example "auth" is not working #35

Open
Speedy1991 opened this issue Sep 6, 2016 · 1 comment
Open

Example "auth" is not working #35

Speedy1991 opened this issue Sep 6, 2016 · 1 comment

Comments

@Speedy1991
Copy link

Speedy1991 commented Sep 6, 2016

*.is_authenticated()

throwing:

File "/tmp/flask-admin/examples/auth/app.py", line 105, in index
    if not login.current_user.is_authenticated():
TypeError: 'bool' object is not callable

Fix:
Change all is_authenticated() to is_authenticated (in all *.py and *.html)

€dit: Tested with python2.7, 3.4 and 3.5

@mrjoes
Copy link
Owner

mrjoes commented Sep 6, 2016

Caused by recent flask-login changes - they changed is_authenticated to become property instead of a method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants