private async void PW_PasswordChanged(object sender, RoutedEventArgs e) { User user = await Apis.Login(loginViewModel.ID, PW.Password); if (user.Point != "-1") { if (loginViewModel.AutoLogin) { FileControl.Session = await Apis.MakeSession(loginViewModel.ID, PW.Password);; } LoginViewModel.LoginUser = user; GameManager.logixExit = true; Close(); } }