Feature: add tooltips to the password input dialog
The passcode input dialog now explains every control the operator can use on hover, using the same MFC built-in tooltip mechanism as the generate-passcode dialog (EnableToolTips + OnToolHitTest + TTN_NEEDTEXT, with the max tip width applied when the tip is requested). The passcode tip carries the main point: the value must match the current serial and binding mode, and a passcode that was tampered with, cracked or forged is invalid. The OK tip says the authorization check verifies the passcode after saving rather than claiming the dialog checks it. The checksum tip reflects that V2 verifies the passcode signature while V1 checks the passcode itself, and the root-credential tip notes that clearing the box does not delete the stored credential. While here, the TTN_NEEDTEXT handlers keep idFrom in UINT_PTR: on x64 the old UINT intermediate could truncate a control HWND. The same fix is applied to the generate-passcode dialog. All 6 texts are translated in the en_US, de_DE and zh_TW packs. Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
f22bd574ea
commit
2b26f22d27
5 files changed
+119
-3
No files matched your search
@@ -2412,3 +2412,11 @@ MCP
|
||||
自动查找并填入下一个可用的 FRP 远程端口。\n保存授权时才会真正记录端口占用。=Find and fill in the next available FRP remote port.\nThe port is only recorded when the license is saved.
|
||||
按当前参数生成口令。\n【重点】必须满足 V1 密码正确或 V2 私钥合法,\n否则生成的口令无效;篡改密码、伪造私钥或\n手工拼接得到的结果,客户端验证都会失败。=Generate a passcode from the current settings.\n[IMPORTANT] V1 requires the correct password and V2 requires a valid private key;\notherwise the generated passcode is invalid. Tampered passwords, forged keys or\nhand-assembled values will always fail client verification.
|
||||
把生成的口令/HMAC/根凭证保存到 licenses.ini,\n并可导出 .lic 文件。只有成功生成口令后才可用;\n本机给自己授权时会自动保存。=Save the generated passcode/HMAC/root credential to licenses.ini,\nand optionally export a .lic file. Available only after a passcode is generated;\nwhen authorizing this machine itself, it is saved automatically.
|
||||
|
||||
; Password input dialog tooltips (CPasswordDlg)
|
||||
选择授权绑定的对象:\n选硬件方式时绑定本机硬件;\n选主控地址方式时绑定当前公网地址。\n切换后序列号会自动重算,与新序列号不匹配的旧口令随之失效。=Choose what the license is bound to:\nHardware mode binds this machine's hardware;\nmaster-address mode binds the current public address.\nSwitching recomputes the serial, so an old passcode for the previous serial no longer works.
|
||||
按「授权方式」自动计算的设备序列号(只读)。\n口令只对这个序列号有效;序列号与授权方式不一致时\n无法通过校验。=Device serial computed automatically from the binding mode (read-only).\nA passcode is only valid for this serial; if the serial and binding mode disagree,\nverification fails.
|
||||
粘贴管理员签发的授权口令(必填)。\n【重点】口令必须与当前序列号、授权方式匹配;\n自行篡改、破解或伪造的口令均无效,\n校验不通过将无法通过授权检查。=Paste the license passcode issued by the administrator (required).\n[IMPORTANT] The passcode must match the current serial and binding mode;\na tampered, cracked or forged passcode is invalid and will fail verification,\nblocking the authorization check.
|
||||
口令对应的验证码/签名(V2 模式下必填,以 v2: 开头)。\nV2 用它校验口令签名,必须与口令、序列号一起由管理员签发;\nV1 模式下由口令本身完成校验。=Checksum/signature for the passcode (required in V2 mode; starts with v2:).\nV2 uses it to verify the passcode signature; it must be issued by the administrator together with the passcode and serial.\nIn V1 mode the passcode itself is verified.
|
||||
可选的上级授权凭证,用于多层授权。\n由上级管理员提供;普通单层授权可留空。\n填写错误不影响本机口令校验,但下发给下级的授权会无效;\n清空输入框不会删除已保存的凭证。=Optional parent authorization credential for multi-level licensing.\nProvided by the parent administrator; leave empty for an ordinary single-level license.\nA wrong value does not affect this machine's passcode check, but licenses issued to sub-levels will be invalid;\nclearing the box does not delete the saved credential.
|
||||
保存序列号、授权口令和验证码。\n【重点】保存后由授权检查验证口令,\n篡改、破解或伪造的口令一律无效;\n请勿手工拼接口令。=Save the serial, license passcode and checksum.\n[IMPORTANT] The authorization check verifies the passcode after saving;\ntampered, cracked or forged passcodes are always invalid.\nDo not hand-assemble a passcode.
|
||||
Reference in new issue
Block a user