mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
fix conflict of password encryption and qrcode login.
This commit is contained in:
parent
e98e4eef8c
commit
931a720692
2
main.go
2
main.go
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user