def _before_request(self):
if self._has_token_checker is None or self.token_view is None:
return
if request.endpoint != self.token_view and request.endpoint not in self.token_view_overrides and self._has_token_checker() is not None and not self._has_token_checker():
return redirect(url_for(self.token_view, next=request.full_path))
评论列表
文章目录