Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

操作系统有 USERNAME 环境变量时会登录失败 #52

Open
HappyWuJunjie opened this issue Jul 11, 2024 · 9 comments
Open

操作系统有 USERNAME 环境变量时会登录失败 #52

HappyWuJunjie opened this issue Jul 11, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@HappyWuJunjie
Copy link

No description provided.

@HappyWuJunjie
Copy link
Author

为什么账号和密码设置好之后,在登录界面登不进去呢?求求

@YuJianghao
Copy link
Contributor

需要更详细的复现步骤:

  • 账号和密码设置好:如何设置的?安装向导 or 重置密码命令 or 其他?
  • 登不进去:界面有什么报错或提示么?
  • ...

@Rean-Schwarze
Copy link

来了 看了一下,数据库中存放的用户名是本机用户名,而不是用户输入的
image
QQ_1721742147709

@YuJianghao
Copy link
Contributor

用户名没理由自己变,是不是在其他地方改过?或者这个 db 文件是旧的了,最近做过一次重构(#48)。

@Rean-Schwarze
Copy link

用户名没理由自己变,是不是在其他地方改过?或者这个 db 文件是旧的了,最近做过一次重构(#48)。

没有改过,前几天刚下的开始用,然后运行pnpm run setup进行的初始化

@YuJianghao
Copy link
Contributor

有什么办法可以复现么?我在 codespaces 试了试没复现出来。另外,你的操作系统 & 终端是什么?
image

@Rean-Schwarze
Copy link

Windows powershell
我刚刚又试了一下 发现我这边也复现不了 现在再运行pnpm run setup的话没问题

@Rean-Schwarze
Copy link

啊啊啊有了有了 setup完之后再start,db里的用户名就变了,setup完还没start时,用户名是自己输入的

@YuJianghao
Copy link
Contributor

YuJianghao commented Sep 3, 2024

怕不是这个远古 feature: #31

if (username) {
this._logService.log(`sync account from process.env.USERNAME`)
this.account.setUsername(username)
}
if (password) {
this._logService.log(`sync account from process.env.PASSWORD`)
this.account.setPassword(password)
}

@YuJianghao YuJianghao self-assigned this Sep 3, 2024
@YuJianghao YuJianghao added bug Something isn't working and removed need more information labels Sep 3, 2024
@YuJianghao YuJianghao changed the title 登录失败 操作系统有 USERNAME 环境变量时会登录失败 Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants