Skip to content

Commit

Permalink
Remove duplicate function in code example (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Jun 25, 2024
1 parent 30675c5 commit 503cf2d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,6 @@ the session depending on a flag you set on the request. For example::

app.session_interface = CustomSessionInterface()

@user_loaded_from_request.connect
def user_loaded_from_request(self, user=None):
g.login_via_request = True

This prevents setting the Flask Session cookie whenever the user authenticated
using your `~LoginManager.request_loader`.

Expand Down

0 comments on commit 503cf2d

Please sign in to comment.