kumidc/core/saml/processors.py
2022-08-22 09:37:16 +00:00

6 lines
No EOL
196 B
Python

from djangosaml2idp.processors import BaseProcessor
class SAMLProcessor(BaseProcessor):
def enable_multifactor(self, user):
return user.totpsecret.exists() and user.totpsecret.active