Skip to content

Commit

Permalink
Fixed problem with couple of decorator that destroy function they dec…
Browse files Browse the repository at this point in the history
…orate
  • Loading branch information
ntrifunovic committed Apr 23, 2014
1 parent 0cbee17 commit 0adf45b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flask_httpauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ def __init__(self):

def hash_password(self, f):
self.hash_password_callback = f
return f

def verify_password(self, f):
self.verify_password_callback = f
return f

def authenticate_header(self):
return 'Basic realm="' + self.realm + '"'
Expand Down

0 comments on commit 0adf45b

Please sign in to comment.