Exemplo n.º 1
0
 def perform_update(self, serializer):
     user = self.get_object()
     username = user.username if user else ''
     LoginBlockUtil.unblock_user(username)
     MFABlockUtils.unblock_user(username)
Exemplo n.º 2
0
 def unblock_login(self):
     from users.utils import LoginBlockUtil, MFABlockUtils
     LoginBlockUtil.unblock_user(self.username)
     MFABlockUtils.unblock_user(self.username)