Skip to content

Commit

Permalink
🎨 修复挂卡登录缓存问题,增加本地储存 token 过期检查并生成新 token
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzaz committed Feb 12, 2025
1 parent f43aa16 commit ad11654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ref/SteamClient
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private async void SteamLoginAsync()
{
IsLoading = true;

if (SteamLoginState.SteamId == 0)
if (!Requires2FA && !RequiresEmailAuth)
{
SteamLoginState.Username = UserNameText;
SteamLoginState.Password = PasswordText;
Expand Down Expand Up @@ -65,9 +65,10 @@ private async void SteamLoginAsync()
}
else if (SteamLoginState.Message != null)
{
IsLoading = false;
Toast.Show(ToastIcon.Warning, SteamLoginState.Message);
}

IsLoading = false;
}
}
catch (Exception ex)
Expand Down

0 comments on commit ad11654

Please sign in to comment.