1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

fix conflict of password encryption and qrcode login.

This commit is contained in:
Mrs4s 2021-03-26 16:03:00 +08:00
parent e98e4eef8c
commit 931a720692

View File

@ -311,7 +311,7 @@ func main() {
global.Proxy = conf.ProxyRewrite
// b := server.WebServer.Run(fmt.Sprintf("%s:%d", conf.WebUI.Host, conf.WebUI.WebUIPort), cli)
// c := server.Console
isQRCodeLogin := conf.Uin == 0 || len(conf.Password) == 0
isQRCodeLogin := (conf.Uin == 0 || len(conf.Password) == 0) && len(conf.PasswordEncrypted) == 0
if !isQRCodeLogin {
if err := commonLogin(); err != nil {
log.Fatalf("登录时发生致命错误: %v", err)