6 lines
No EOL
196 B
Python
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 |