支持 root 恢复 admin 密码并发布 0.4.8#32
Merged
massif-01 merged 1 commit intoMay 25, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
admin 密码遗忘时,设备仍可通过 root 登录,但此前 WebUI/API 没有窄范围恢复 admin 访问的入口。本次只补 root 恢复 admin 的能力,不扩展为通用用户管理。
本 PR 同时将
version.txt提到0.4.8,确保合并到main后现有 release workflow 会创建v0.4.8并上传固件资产。改动
auth.admin.set_password和auth.admin.reset_passwordAPI,仅允许管理admin。rm01。AUTH后清理本地登录态并提示重新登录,避免继续显示误导性的旧错误。0.4.8。发布影响
version.txt:0.4.7->0.4.8。mainpush 后会重新配置构建,并用构建版本去掉 build metadata 后解析 release tag,因此本次合并后应创建v0.4.8。TianShanOS.bin、www.bin、bootloader.bin、partition-table.bin、ota_data_initial.bin和flasher_args.json。验证
git diff --checknode --check components/ts_webui/web/js/api.jsnode --check components/ts_webui/web/js/app.jsnode --check components/ts_webui/web/js/lang/zh-CN.jsnode --check components/ts_webui/web/js/lang/en-US.js./tools/build.sh./tools/build.sh --fresh,重新配置后固件版本为0.4.8+3138628d.05252317风险与兼容性
AUTH_CONFIG_VERSION。AUTH,非 root 返回NO_PERMISSION。