summaryrefslogtreecommitdiff
path: root/src/leap/bonafide/_decorators.py
diff options
context:
space:
mode:
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.