From 6a726e151b86504d93d4fa2ccc1dd125c05ffa33 Mon Sep 17 00:00:00 2001 From: wangyingpan Date: Thu, 6 Jun 2024 14:38:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E8=B0=83=E6=95=B4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/ViewModels/JoinSteamAuthenticatorPageViewModel.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/BD.WTTS.Client.Plugins.Authenticator/UI/ViewModels/JoinSteamAuthenticatorPageViewModel.cs b/src/BD.WTTS.Client.Plugins.Authenticator/UI/ViewModels/JoinSteamAuthenticatorPageViewModel.cs index 5e25c73c8..5a182d9ae 100644 --- a/src/BD.WTTS.Client.Plugins.Authenticator/UI/ViewModels/JoinSteamAuthenticatorPageViewModel.cs +++ b/src/BD.WTTS.Client.Plugins.Authenticator/UI/ViewModels/JoinSteamAuthenticatorPageViewModel.cs @@ -116,12 +116,13 @@ public sealed partial class JoinSteamAuthenticatorPageViewModel : ViewModelBase loginState.Password = PasswordText; loginState.Language = ResourceService.GetCurrentCultureSteamLanguageName(); + if (RequireVerifyCode && loginState.RequiresEmailAuth) + { + loginState.EmailCode = VerifyCodeText; + } + try { - if (RequireVerifyCode && loginState.RequiresEmailAuth) - { - loginState.EmailCode = VerifyCodeText; - } // 开始登录 await _steamAccountService.DoLoginV2Async(loginState); }