Explorar o código

feat: 支持识别因为微软账号被标记为可疑活动导致登陆失败

From https://github.com/PCL-Community/PCL2-CE/issues/769
白月晓 hai 1 ano
pai
achega
81619cbfc7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Plain Craft Launcher 2/Pages/PageLaunch/MyMsgLogin.xaml.vb

+ 2 - 0
Plain Craft Launcher 2/Pages/PageLaunch/MyMsgLogin.xaml.vb

@@ -125,6 +125,8 @@
                 ElseIf ex.Message.Contains("expired_token") Then
                     Finished(New Exception("$登录用时太长啦,重新试试吧!"))
                     Return
+                Else If ex.Message.Contains("Account security interrupt") Then
+                    Finished(New Exception("$非常抱歉,该账号由于安全问题无法登陆,请前往 Microsoft 账户页获取更多信息。"))
                 ElseIf ex.Message.Contains("service abuse") Then
                     Finished(New Exception("$非常抱歉,该账号已被微软封禁,无法登录。"))
                     Return