kumidc/core/saml/processors.py

6 lines
196 B
Python
Raw Normal View History

2022-08-22 09:37:16 +00:00
from djangosaml2idp.processors import BaseProcessor
class SAMLProcessor(BaseProcessor):
def enable_multifactor(self, user):
return user.totpsecret.exists() and user.totpsecret.active