Skip to content

fix: restore security password dialog focus on net6 - #837

Merged
CJKmkp merged 4 commits into
net6from
fix/836-security-prompt-focus-net6
Nov 30, 2026
Merged

CJKmkp merged 4 commits into
net6from
fix/836-security-prompt-focus-net6

Conversation

@CJKmkp

@CJKmkp CJKmkp commented Nov 30, 2026

Copy link
Copy Markdown
Member

Closes #836

问题

安全验证仍使用 iNKORE ContentDialog。与新窗口宿主并存时,对话框没有显式绑定触发它的窗口,打开时的一次性控件聚焦不足以保证模态窗口持续获得激活和鼠标输入。

修复

  • 新增安全验证专用原生 WPF 模态窗口,使用 ShowDialog() 和明确的 Owner 关系。
  • 显示后激活窗口,再触发原有密码框焦点设置。
  • 将普通密码验证、密码/TOTP 验证、设置新密码和修改密码统一迁移到该窗口。
  • 保留现有密码哈希校验、TOTP、USB 定时验证以及无焦点模式临时恢复逻辑。
  • 不为 net6 引入 HandyControls 依赖。

验证

  • 检查四处安全对话框调用均已绑定调用方窗口。
  • PR Check 工作流包含 net6 的 pull_request 构建;等待 CI 结果确认编译。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T03:54:13.706379Z fcff71b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@CJKmkp
CJKmkp merged commit b9dbc17 into net6 Nov 30, 2026
4 checks passed
@CJKmkp
CJKmkp deleted the fix/836-security-prompt-focus-net6 branch November 30, 2026 03:55
github-actions Bot pushed a commit that referenced this pull request Nov 30, 2026
* fix(security): add owner-bound WPF security prompt dialog

* fix(security): bind password prompts to their owner window

* style(security): preserve source line endings

* style(security): match repository line endings

(cherry picked from commit b9dbc17)
PrefacedCorg pushed a commit that referenced this pull request Nov 30, 2026
* fix(security): add owner-bound WPF security prompt dialog

* fix(security): bind password prompts to their owner window

* style(security): preserve source line endings

* style(security): match repository line endings

(cherry picked from commit b9dbc17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant