From a5c8cb051ee6a297eb82f73395849203c7a2ef64 Mon Sep 17 00:00:00 2001 From: Linwenxuan <116782992+Linwenxuan05@users.noreply.github.com> Date: Thu, 9 Nov 2023 18:38:07 +0800 Subject: [PATCH] [OneBot] Fixed logic of Detecting A2 and Password --- Lagrange.OneBot/LagrangeApp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lagrange.OneBot/LagrangeApp.cs b/Lagrange.OneBot/LagrangeApp.cs index 97323cbd9..580efe407 100644 --- a/Lagrange.OneBot/LagrangeApp.cs +++ b/Lagrange.OneBot/LagrangeApp.cs @@ -70,8 +70,8 @@ internal LagrangeApp(IHost host) await WebService.StartAsync(cancellationToken); - if (Configuration["Account:Password"] == null || Configuration["Account:Password"] == "" || - Instance.ContextCollection.Keystore.Session.TempPassword == null) + if (string.IsNullOrEmpty(Configuration["Account:Password"]) && + Instance.ContextCollection.Keystore.Session.TempPassword == null) // EasyLogin and PasswordLogin is both disabled { Logger.LogInformation("Session expired or Password not filled in, try to login by QrCode");