mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-19 09:16:57 +00:00
perf: Face translate
This commit is contained in:
parent
4e7cd37c1d
commit
61c54314d7
@ -9,6 +9,6 @@ class ActionChoices(models.TextChoices):
|
||||
warning = 'warning', _('Warn')
|
||||
notice = 'notice', _('Notify')
|
||||
notify_and_warn = 'notify_and_warn', _('Prompt and warn')
|
||||
face_verify = 'face_verify', _('Face Verify')
|
||||
face_online = 'face_online', _('Face Online')
|
||||
face_verify = 'face_verify', _('Face verify')
|
||||
face_online = 'face_online', _('Face online')
|
||||
change_secret = 'change_secret', _('Change password')
|
||||
|
@ -32,7 +32,7 @@ class MFAType(TextChoices):
|
||||
OTP = 'otp', _('OTP')
|
||||
SMS = 'sms', _('SMS')
|
||||
Email = 'email', _('Email')
|
||||
Face = 'face', _('Face Recognition')
|
||||
Face = 'face', _('Face recognition')
|
||||
Radius = 'otp_radius', _('Radius')
|
||||
Passkey = 'passkey', _('Passkey')
|
||||
Custom = 'mfa_custom', _('Custom')
|
||||
|
@ -9,7 +9,7 @@ from ..const import MFAType
|
||||
class MFAFace(BaseMFA, AuthFaceMixin):
|
||||
name = MFAType.Face.value
|
||||
display_name = MFAType.Face.name
|
||||
placeholder = 'Face Recognition'
|
||||
placeholder = 'Face recognition'
|
||||
skip_cache_check = True
|
||||
has_code = False
|
||||
|
||||
|
@ -1777,11 +1777,11 @@ msgid "Prompt and warn"
|
||||
msgstr ""
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr ""
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr ""
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3754,7 +3754,7 @@ msgid "SMS"
|
||||
msgstr ""
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr ""
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -9585,7 +9585,7 @@ msgid "Need update password"
|
||||
msgstr ""
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr ""
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1887,11 +1887,11 @@ msgid "Prompt and warn"
|
||||
msgstr "Sugerencia y alarma"
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr "Verificación facial"
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr "Facial en línea"
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3976,7 +3976,7 @@ msgid "SMS"
|
||||
msgstr "SMS"
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr "Reconocimiento facial"
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -10376,7 +10376,7 @@ msgid "Need update password"
|
||||
msgstr "Necesita actualizar la contraseña"
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr "Vector facial"
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1800,11 +1800,11 @@ msgid "Prompt and warn"
|
||||
msgstr "プロンプトと警告"
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr "顔認証"
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr "顔オンライン"
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3796,7 +3796,7 @@ msgid "SMS"
|
||||
msgstr "メッセージ"
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr "顔認証"
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -9711,7 +9711,7 @@ msgid "Need update password"
|
||||
msgstr "更新パスワードが必要"
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr "人顔ベクトル"
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1790,11 +1790,11 @@ msgid "Prompt and warn"
|
||||
msgstr "提示 및 알람"
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr "안면 확인"
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr "안면 온라인"
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3786,7 +3786,7 @@ msgid "SMS"
|
||||
msgstr "문자 메시지"
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr "얼굴 인식"
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -9784,7 +9784,7 @@ msgid "Need update password"
|
||||
msgstr "비밀번호 업데이트 필요"
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr "얼굴 벡터"
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1863,11 +1863,11 @@ msgid "Prompt and warn"
|
||||
msgstr "Dica e alerta"
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr "Verificação facial"
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr "Facial online"
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3926,7 +3926,7 @@ msgid "SMS"
|
||||
msgstr "SMS"
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr "Reconhecimento facial"
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -10149,7 +10149,7 @@ msgid "Need update password"
|
||||
msgstr "Necessita atualizar a senha"
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr "Vetor facial"
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1867,11 +1867,11 @@ msgid "Prompt and warn"
|
||||
msgstr "Запрос и Предупреждение"
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr "Проверка по лицу"
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr "Лицо онлайн"
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3942,7 +3942,7 @@ msgid "SMS"
|
||||
msgstr "SMS"
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr "Распознавание лиц"
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -10178,7 +10178,7 @@ msgid "Need update password"
|
||||
msgstr "Необходимо обновить пароль"
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr "Вектор лица"
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1806,11 +1806,11 @@ msgid "Prompt and warn"
|
||||
msgstr "提示并告警"
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr "人脸验证"
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr "人脸在线"
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3820,7 +3820,7 @@ msgid "SMS"
|
||||
msgstr "短信"
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr "人脸识别"
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -9796,7 +9796,7 @@ msgid "Need update password"
|
||||
msgstr "需要更新密码"
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr "人脸向量"
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1782,11 +1782,11 @@ msgid "Prompt and warn"
|
||||
msgstr "提示並警告"
|
||||
|
||||
#: acls/const.py:12
|
||||
msgid "Face Verify"
|
||||
msgid "Face verify"
|
||||
msgstr "人臉驗證"
|
||||
|
||||
#: acls/const.py:13
|
||||
msgid "Face Online"
|
||||
msgid "Face online"
|
||||
msgstr "人臉在線"
|
||||
|
||||
#: acls/models/base.py:37 assets/models/cmd_filter.py:76
|
||||
@ -3774,7 +3774,7 @@ msgid "SMS"
|
||||
msgstr "簡訊"
|
||||
|
||||
#: authentication/const.py:35
|
||||
msgid "Face Recognition"
|
||||
msgid "Face recognition"
|
||||
msgstr "臉部辨識"
|
||||
|
||||
#: authentication/const.py:36 settings/serializers/auth/radius.py:14
|
||||
@ -9636,7 +9636,7 @@ msgid "Need update password"
|
||||
msgstr "需要更新密碼"
|
||||
|
||||
#: users/models/user/__init__.py:145
|
||||
msgid "Face Vector"
|
||||
msgid "Face vector"
|
||||
msgstr "人臉向量"
|
||||
|
||||
#: users/models/user/__init__.py:148
|
||||
|
@ -1,8 +1,9 @@
|
||||
# Generated by Django 4.1.13 on 2024-11-08 03:33
|
||||
|
||||
import common.db.fields
|
||||
from django.db import migrations
|
||||
|
||||
import common.db.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
@ -14,6 +15,6 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='face_vector',
|
||||
field=common.db.fields.EncryptTextField(blank=True, max_length=2048, null=True, verbose_name='Face Vector'),
|
||||
field=common.db.fields.EncryptTextField(blank=True, max_length=2048, null=True, verbose_name='Face vector'),
|
||||
),
|
||||
]
|
||||
|
@ -142,7 +142,7 @@ class User(
|
||||
null=True, default=None, max_length=128, verbose_name=_("Slack")
|
||||
)
|
||||
face_vector = fields.EncryptTextField(
|
||||
null=True, blank=True, max_length=2048, verbose_name=_("Face Vector")
|
||||
null=True, blank=True, max_length=2048, verbose_name=_("Face vector")
|
||||
)
|
||||
date_api_key_last_used = models.DateTimeField(
|
||||
null=True, blank=True, verbose_name=_("Date api key used")
|
||||
|
Loading…
Reference in New Issue
Block a user