alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.44k stars 5.12k forks source link

add 2FA support for mega #6473

Closed Kuingsmile closed 1 month ago

Kuingsmile commented 1 month ago

close #6226

add 2FA support for mega, also a pr for alist-web alist-org/alist-web#175

anwen-anyi commented 1 month ago

这是啥错误,2FA秘钥也下载填进去了,2FA 6位码应用是用的微软的 Failed init storage: generate totp code failed: Decoding of secret as base32 failed.

Kuingsmile commented 1 month ago

密钥后如果有=号要删掉试下,另外mega给的能下载的是恢复码吧,密钥要解析二维码查看,或者在支持查看密钥的应用里复制,我用的是2FAs auth

anwen-anyi commented 1 month ago

密钥后如果有=号要删掉试下,另外mega给的能下载的是恢复码吧,密钥要解析二维码查看,或者在支持查看密钥的应用里复制,我用的是2FAs auth

嗯 没事儿啦 是我弄错了 这个2FA秘钥是 绑定前的二维码那一串 我以为是恢复秘钥 😹