mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-29 11:23:17 +00:00
fix: fix face live can not enable
This commit is contained in:
parent
0fed338277
commit
5522ba0241
@ -44,7 +44,7 @@ class MFAFace(BaseMFA, AuthFaceMixin):
|
||||
|
||||
def disable(self):
|
||||
assert self.is_authenticated()
|
||||
self.user.face_vector = ''
|
||||
self.user.face_vector = None
|
||||
self.user.save(update_fields=['face_vector'])
|
||||
|
||||
def can_disable(self) -> bool:
|
||||
|
Loading…
Reference in New Issue
Block a user