mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Small fixes for the credentials dialog
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@887 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
cf699594f9
commit
6a0d928bd4
1 changed files with 6 additions and 1 deletions
|
@ -141,7 +141,9 @@ namespace Jira {
|
||||||
public void login() {
|
public void login() {
|
||||||
logout();
|
logout();
|
||||||
try {
|
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;
|
dialog.Name = null;
|
||||||
while (dialog.Show(dialog.Name) == DialogResult.OK) {
|
while (dialog.Show(dialog.Name) == DialogResult.OK) {
|
||||||
if (doLogin(dialog.Name, dialog.Password)) {
|
if (doLogin(dialog.Name, dialog.Password)) {
|
||||||
|
@ -156,7 +158,10 @@ namespace Jira {
|
||||||
// exception handling ...
|
// exception handling ...
|
||||||
LOG.Error("Problem using the credentials dialog", e);
|
LOG.Error("Problem using the credentials dialog", e);
|
||||||
}
|
}
|
||||||
|
// For every windows version after XP show an incorrect password baloon
|
||||||
dialog.IncorrectPassword = true;
|
dialog.IncorrectPassword = true;
|
||||||
|
// Make sure the dialog is display, the password was false!
|
||||||
|
dialog.AlwaysDisplay = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ApplicationException e) {
|
} catch (ApplicationException e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue