I want to ask that:
What is the purpose of
@login_required
in below piece of code?(Yes, "@login_required" is defined in another .py file)
How this piece of code actually works? Does it means whenever class
TaskCreateHandler
will be used the functionlogin_required
will called?What if we write
@login_required
inside def post(self)?
Thanks.
class TaskCreateHandler(BaseHandler):
@login_required
def post(self):