Like this question: Best way to make Django's login_required the default
I’m using Flask-Login‘s login_required decorator now. Is there anyway to make it the default behavior in Flask?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I did this in my instruments project. I use the
before_requestdecorator:and I then created an
is_public()decorator for the few places that would need to be accessible without login: