I tried to use is_authenticated()
in a view, but got the error `TypeError: 'bool' object is not callable. Why am I getting this error and how do I fix it?
@auth.before_app_request
def before_request():
if current_user.is_authenticated() \
and not current_user.confirmed \
and request.endpoint[:5] != 'auth.' \
and request.endpoint != 'static':
return redirect(url_for('auth.unconfirmed'))