*(minor): small refactor
This commit is contained in:
12
passbook/factors/dummy/factor.py
Normal file
12
passbook/factors/dummy/factor.py
Normal file
@ -0,0 +1,12 @@
|
||||
"""passbook multi-factor authentication engine"""
|
||||
from django.http import HttpRequest
|
||||
|
||||
from passbook.factors.base import AuthenticationFactor
|
||||
|
||||
|
||||
class DummyFactor(AuthenticationFactor):
|
||||
"""Dummy factor for testing with multiple factors"""
|
||||
|
||||
def post(self, request: HttpRequest):
|
||||
"""Just redirect to next factor"""
|
||||
return self.authenticator.user_ok()
|
Reference in New Issue
Block a user