diff --git a/apps/auth1/views.py b/apps/auth1/views.py index b181a010..a7071778 100755 --- a/apps/auth1/views.py +++ b/apps/auth1/views.py @@ -265,7 +265,7 @@ class FaceLoginView(CreateAPIView): """ from apps.hrm.services import HrmService base64_data = base64.urlsafe_b64decode(tran64(request.data.get('base64').replace(' ', '+'))) - ep, msg = HrmService.face_find_from_base64(base64_data) + ep, msg = HrmService.face_compare_from_base64(base64_data) if ep: if ep.user and ep.user.is_active and ep.user.is_deleted is False: user = ep.user diff --git a/requirements.txt b/requirements.txt index b6540c25..838fb4d5 100755 --- a/requirements.txt +++ b/requirements.txt @@ -30,4 +30,5 @@ xlwt==1.3.0 openpyxl==3.1.0 cron-descriptor==1.2.35 pymysql==1.0.3 +face-recognition==1.3.0 # deepface==0.0.79