Skip to content

密码功能#13

Merged
lingbopro merged 4 commits into
win12-online:mainfrom
Iamliuxiaozhen:fn/password
Jun 16, 2026
Merged

密码功能#13
lingbopro merged 4 commits into
win12-online:mainfrom
Iamliuxiaozhen:fn/password

Conversation

@Iamliuxiaozhen

Copy link
Copy Markdown
Collaborator

我添加了密码功能
相关的PR:win12-online/win12/pull/843

Add backend commands to check, create, and verify a local login password.
Store Argon2 password hashes under the user's home directory to avoid saving
plain text credentials.feat(auth): add Tauri login password persistence

Add backend commands to check, create, and verify a local login password.
Store Argon2 password hashes under the user's home directory to avoid saving
plain text credentials.
Replace the combined verify-or-create command with separate commands for
verifying and setting the login password. Require the current password when
updating an existing password to prevent unauthorized changes.feat(auth): split login password verify and setup flow

Replace the combined verify-or-create command with separate commands for
verifying and setting the login password. Require the current password when
updating an existing password to prevent unauthorized changes.
Update password handling so an empty new password removes the stored
password hash after verifying the current password when one exists. This
allows users to disable login password protection instead of rejecting
empty password updates.feat(auth): allow clearing saved login password

Update password handling so an empty new password removes the stored
password hash after verifying the current password when one exists. This
allows users to disable login password protection instead of rejecting
empty password updates.
Comment thread tauri/src-tauri/src/lib.rs Outdated
 - Linux:通常是 ~/.local/share/win12-desktop/password.hash
  - Windows:通常是 %APPDATA%\win12-desktop\password.hash
  - macOS:会走系统应用数据目录
@Iamliuxiaozhen

Copy link
Copy Markdown
Collaborator Author

我已完成修改

  • Linux:通常是 ~/.local/share/win12-desktop/password.hash
  • Windows:通常是 %APPDATA%\win12-desktop\password.hash
  • macOS:会走系统应用数据目录

@Iamliuxiaozhen

Copy link
Copy Markdown
Collaborator Author

@lingbopro 我能Merge了吗

@lingbopro lingbopro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看着还行

@lingbopro lingbopro merged commit 1eac979 into win12-online:main Jun 16, 2026
4 checks passed
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.

3 participants