Skip to content

Commit

Permalink
[OneBot] Fixed logic of Detecting A2 and Password
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Nov 9, 2023
1 parent 88ca332 commit a5c8cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lagrange.OneBot/LagrangeApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit a5c8cb0

Please sign in to comment.