mirror of https://github.com/jumpserver/jumpserver
perf: passkey help msg
parent
ae7dbbedcc
commit
11b125655d
|
@ -109,7 +109,10 @@ def register_complete(request):
|
||||||
data = request.data
|
data = request.data
|
||||||
server = get_server(request)
|
server = get_server(request)
|
||||||
state = request.session.pop("fido2_state")
|
state = request.session.pop("fido2_state")
|
||||||
auth_data = server.register_complete(state, response=data)
|
try:
|
||||||
|
auth_data = server.register_complete(state, response=data)
|
||||||
|
except ValueError as e:
|
||||||
|
raise ValidationError({'error': str(e)})
|
||||||
encoded = websafe_encode(auth_data.credential_data)
|
encoded = websafe_encode(auth_data.credential_data)
|
||||||
platform = get_current_platform(request)
|
platform = get_current_platform(request)
|
||||||
name = data.pop("key_name", '') or platform
|
name = data.pop("key_name", '') or platform
|
||||||
|
|
|
@ -526,6 +526,7 @@
|
||||||
"HasImportErrorItemMsg": "There are import failures, click on the left x to view the failure reasons, after editing the table, you can continue to import failures.",
|
"HasImportErrorItemMsg": "There are import failures, click on the left x to view the failure reasons, after editing the table, you can continue to import failures.",
|
||||||
"Help": "Help",
|
"Help": "Help",
|
||||||
"HighLoad": "Higher",
|
"HighLoad": "Higher",
|
||||||
|
"HTTPSRequiredForSupport": "HTTPS is required for support",
|
||||||
"HistoricalSessionNum": "Total historical sessions",
|
"HistoricalSessionNum": "Total historical sessions",
|
||||||
"History": "History",
|
"History": "History",
|
||||||
"HistoryDate": "Date",
|
"HistoryDate": "Date",
|
||||||
|
|
|
@ -468,6 +468,7 @@
|
||||||
"ExportRange": "导出范围",
|
"ExportRange": "导出范围",
|
||||||
"FC": "Fusion Compute",
|
"FC": "Fusion Compute",
|
||||||
"Failed": "失败",
|
"Failed": "失败",
|
||||||
|
"HTTPSRequiredForSupport": "需要 HTTPS 支持,才能开启",
|
||||||
"FailedAsset": "失败的资产",
|
"FailedAsset": "失败的资产",
|
||||||
"FaviconTip": "提示:网站图标(建议图片大小为: 16px*16px)",
|
"FaviconTip": "提示:网站图标(建议图片大小为: 16px*16px)",
|
||||||
"Features": "功能设置",
|
"Features": "功能设置",
|
||||||
|
|
Loading…
Reference in New Issue