Flask-Login has set is_active is_authenticated is_anonymous to property in UserMixin, so we should use current_user.is_authenticated instead of current_user.is_authenticated()
AttributeError AttributeError: ‘bool’ object has no attribute ‘__call__’
Leave a reply