core: fix mfa, split up into multiple files, move factors to settings
This commit is contained in:
14
passbook/core/auth/dummy.py
Normal file
14
passbook/core/auth/dummy.py
Normal file
@ -0,0 +1,14 @@
|
||||
"""passbook multi-factor authentication engine"""
|
||||
from logging import getLogger
|
||||
|
||||
from passbook.core.auth.factor import AuthenticationFactor
|
||||
|
||||
LOGGER = getLogger(__name__)
|
||||
|
||||
|
||||
class DummyFactor(AuthenticationFactor):
|
||||
"""Dummy factor for testing with multiple factors"""
|
||||
|
||||
def post(self, request):
|
||||
"""Just redirect to next factor"""
|
||||
return self.authenticator.user_ok()
|
Reference in New Issue
Block a user