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

current_user.is_authenticated() is not valid in Flask-Login==0.3.2 #45

Closed
bilalel opened this issue Feb 21, 2016 · 2 comments
Closed

current_user.is_authenticated() is not valid in Flask-Login==0.3.2 #45

bilalel opened this issue Feb 21, 2016 · 2 comments

Comments

@bilalel
Copy link

bilalel commented Feb 21, 2016

Hello,

In Flask-Login==0.3.2, is_authenticated isn't a method anymore but a boolean.
Is it pythonic if we replace :

if current_user.is_authenticated():
    pass

by :

if current_user.is_authenticated:
    pass

If you think it's a good workaround, I can send you a pull request.

Br,
Bilal

@jpeeler
Copy link

jpeeler commented May 1, 2016

It happened a long time ago in 0.3.0 too. I'll submit a PR since maybe it'll save somebody else from having to do it.

@imwilsonxu
Copy link
Owner

Fix with 6ff899e

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

3 participants