summaryrefslogtreecommitdiff
path: root/src/leap/bonafide/_decorators.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-09-04 02:18:51 -0400
committerKali Kaneko <kali@leap.se>2015-09-04 02:18:51 -0400
commit6d73e628d47c65792a89c2cf2d4b9bf9b34901e0 (patch)
treeb90fcfc10d1446991a53bb85c8f16fe8e8e97580 /src/leap/bonafide/_decorators.py
parent5728511e094aff3978c98fc1d616dce4b60a5a23 (diff)
smtp certs [WIP]
Diffstat (limited to 'src/leap/bonafide/_decorators.py')
-rw-r--r--src/leap/bonafide/_decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bonafide/_decorators.py b/src/leap/bonafide/_decorators.py
index cfd6ec0..6b43715 100644
--- a/src/leap/bonafide/_decorators.py
+++ b/src/leap/bonafide/_decorators.py
@@ -19,7 +19,7 @@ Decorators used in bonafide.
"""
-def needs_authentication(func):
+def auth_required(func):
"""
Decorate a method so that it will not be called if the instance
attribute `is_authenticated` does not evaluate to True.