You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Account creation now posts the username and password to /api/auth/setup, treats HTTP 409 as success, and shows host error text unchanged. No concrete defect was established. The only open question is whether every supported host version returns status: true on success, which can't be confirmed from this repository.
Reviewing files that changed from the base of the PR and between 008d24e and 9647bee.
Files selected for processing: 2
src/renderer/composables/guideData.js
src/renderer/composables/guideData.test.js
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
[low] 53-53: Detected a potential hardcoded password literal, which may expose account credentials. Found in a test, fixture or example file. The same value appears in 2 other places in this change.
(generic-password)
Additional comments: 1
src/renderer/composables/guideData.js: 1
249-249: Data Integrity & Integration
The finding that a successful /api/auth/setup response may lack an accepted status is not supported by the inspected repository. The only evidence for this route's success shape is the panel's own { status: true } expectation and its fixture. No host implementation or versioned contract in the checkout shows that a 200 response can omit status, so the claimed premise is unverified. The 409 branch, the error-text passthrough, and the network-failure catch all match the stated PR intent and need no correction.
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
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.
说明
面板新手引导的建号步骤还在打旧接口
/api/password,而 Web 向导和登录页已切到会话认证的POST /api/auth/setup,密码规则由主机在该接口统一执行。面板因此绕开了主机的建号规则,和 Web 端行为不一致。另外,跳过建号后面板首页没有任何提示补建(远程浏览器进不了没有账号的首页,但面板经本机代理可以)。
修改
POST /api/auth/setup,请求体改为{username, password}/api/auth/session报告setup_required时显示引导横幅(一行内文案 + 红色按钮),点击打开建号页:引导只保留账号一步,建完或关闭即回首页;18 个语言表新增对应文案,其余语言回退英文