Skip to content

Commit

Permalink
Merge pull request #321 from neilsh/patch-1
Browse files Browse the repository at this point in the history
Repeat `header_loader` deprecation in API doc
  • Loading branch information
alanhamlett committed Nov 21, 2016
2 parents 9bd91fe + 2825071 commit dc7acfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_login/login_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def user_loader(self, callback):

def header_loader(self, callback):
'''
This function has been deprecated. Please use
:meth:`LoginManager.request_loader` instead.
This sets the callback for loading a user from a header value.
The function you set should take an authentication token and
return a user object, or `None` if the user does not exist.
Expand Down

0 comments on commit dc7acfd

Please sign in to comment.