fixed problems with PromptUsernameAndPassword when dialogs are turned off
git-svn-id: svn://10.0.0.236/trunk@28141 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6374b6b34e
commit
3b2fc8c4e0
@ -164,8 +164,8 @@ MyFE_PromptUsernameAndPassword
|
||||
(char *msg, char **username, char **password) {
|
||||
|
||||
if (!si_GetUsingDialogsPref()) {
|
||||
*username = "your name";
|
||||
*password = "your password";
|
||||
*username = PL_strdup("your name");
|
||||
*password = PL_strdup("your password");
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
@ -1751,7 +1751,9 @@ si_LoadSignonData(PRBool fullLoad) {
|
||||
if (fullLoad) {
|
||||
si_RestartKey();
|
||||
while (!si_SetKey()) {
|
||||
if (!MyFE_Confirm("incorrect key -- do you want to try again?")) {
|
||||
if (!si_GetUsingDialogsPref()) {
|
||||
return 1;
|
||||
} else if (!MyFE_Confirm("incorrect key -- do you want to try again?")) {
|
||||
MyFE_Confirm("Key failure -- password file will not be opened");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user