alist
alist copied to clipboard
登陆错误次数检查严重阻碍基于api的开发
Please make sure of the following things
-
[X] I have read the documentation. 我已经阅读了文档。
-
[X] I'm sure there are no duplicate issues or discussions. 我确定没有重复的issue或讨论。
-
[X] I'm sure it's due to
AList
and not something else(such as Network ,Dependencies
orOperational
). 我确定是AList
的问题,而不是其他原因(例如网络,依赖
或操作
)。 -
[X] I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
3.29.1
Driver used / 使用的存储驱动
不限
Describe the bug / 问题描述
由于项目需要很频繁的调用alist相关api进行刷新下载链接的操作,实际开发中发现经常报: Too many unsuccessful sign-in attempts havade using an incorrect username or password, Try again later.
检查源码发现此异常存在在于: alist/server/handles/auth.go,第55行 alist/server/handles/ldap_login.go,第41行
跟踪发现defaultTimes于代码中写死,此判断应该去除,抛出异常由开发者自行判断如何操作,或者把defaultTimes纳入到config.json配置,现在的代码直接把路堵死了
Reproduction / 复现链接
无
Config / 配置
无
Logs / 日志
无