public SecurityWarningWindow(string responseBody)
        {
            InitializeComponent();

            responseBody = EmailChallengeWindow.RemoveScriptTags(responseBody);

            this.webBrowser.NavigateToString(responseBody);
            webBrowser.Navigating += WebBrowser_Navigating;
        }
Beispiel #2
0
 public LoginResult GetEmailChallenge(bool sisi, string responseBody, out Token accessToken)
 {
     Windows.EmailChallengeWindow emailWindow = new Windows.EmailChallengeWindow(responseBody);
     emailWindow.ShowDialog();
     if (!emailWindow.DialogResult.HasValue || !emailWindow.DialogResult.Value)
     {
         SecurePassword = null;
         accessToken    = null;
         return(LoginResult.EmailVerificationRequired);
     }
     SecurePassword = null;
     accessToken    = null;
     return(LoginResult.EmailVerificationRequired);
 }