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

密码输入总是不正确 #123

Open
fanrenyige opened this issue Aug 6, 2024 · 3 comments
Open

密码输入总是不正确 #123

fanrenyige opened this issue Aug 6, 2024 · 3 comments

Comments

@fanrenyige
Copy link

版本:最新
操作:
root@OpenWrt:/usr/bin# alist admin set 12345678 --data /etc/alist
INFO[2024-08-06 11:56:07] reading config file: /etc/alist/config.json
INFO[2024-08-06 11:56:07] init logrus...
WARN[2024-08-06 11:56:07] not enable search
INFO[2024-08-06 11:56:07] admin user has been updated:
INFO[2024-08-06 11:56:07] username: admin
INFO[2024-08-06 11:56:07] password: 12345678
WARN[2024-08-06 11:56:07] [del_user_cache_online] failed: Post "http://localhost:5244/api/admin/user/del_cache?username=admin": dial tcp [::1]:5244: connect: connection refused
INFO[2024-08-06 11:56:07] closing db
root@OpenWrt:/usr/bin#

用12345678作为密码去登录,报密码不正确,无法登录

@fanrenyige
Copy link
Author

刚才关闭了IP v6,关闭了dhcp。
root@OpenWrt:/usr/bin# alist admin --data /etc/alist random
INFO[2024-08-06 12:47:25] reading config file: /etc/alist/config.json
INFO[2024-08-06 12:47:25] init logrus...
WARN[2024-08-06 12:47:25] not enable search
INFO[2024-08-06 12:47:25] admin user has been updated:
INFO[2024-08-06 12:47:25] username: admin
INFO[2024-08-06 12:47:25] password: Ank96Azs
WARN[2024-08-06 12:47:25] [del_user_cache_online] failed: Post "http://localhost:5244/api/admin/user/del_cache?username=admin": dial tcp [::1]:5244: connect: connection refused
INFO[2024-08-06 12:47:25] closing db
root@OpenWrt:/usr/bin#
用这个随机密码登录成功了。真是很奇怪,修改的openwrt配置和alist没有啥关系啊

@sbwml
Copy link
Owner

sbwml commented Aug 6, 2024 via email

@fanrenyige
Copy link
Author

经过验证,和openwrt编译加入的模块相关。如果假如nginx几个相关的模块,输入ip出现https时,密码都不能用。相反用http能够访问openwrt时,密码有效。推测 应该alist设置密码时的某个操作用的是http协议,当openwrt系统默认https时,操作被中断了。

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

No branches or pull requests

2 participants