From 6a0d928bd425a77d349ef6dd8605e2fe7d817fb0 Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 22 Sep 2010 07:57:48 +0000 Subject: [PATCH] Small fixes for the credentials dialog git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@887 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotJiraPlugin/Jira.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GreenshotJiraPlugin/Jira.cs b/GreenshotJiraPlugin/Jira.cs index 43cfb0aec..7f982940f 100644 --- a/GreenshotJiraPlugin/Jira.cs +++ b/GreenshotJiraPlugin/Jira.cs @@ -141,7 +141,9 @@ namespace Jira { public void login() { logout(); try { - CredentialsDialog dialog = new CredentialsDialog(config.Url.Replace(JiraConfiguration.DEFAULT_PREFIX,"").Replace(JiraConfiguration.DEFAULT_POSTFIX,"")); + // Get the system name, so the user knows where to login to + string systemName = config.Url.Replace(JiraConfiguration.DEFAULT_POSTFIX,""); + CredentialsDialog dialog = new CredentialsDialog(systemName); dialog.Name = null; while (dialog.Show(dialog.Name) == DialogResult.OK) { if (doLogin(dialog.Name, dialog.Password)) { @@ -156,7 +158,10 @@ namespace Jira { // exception handling ... LOG.Error("Problem using the credentials dialog", e); } + // For every windows version after XP show an incorrect password baloon dialog.IncorrectPassword = true; + // Make sure the dialog is display, the password was false! + dialog.AlwaysDisplay = true; } } } catch (ApplicationException e) {