Fossil SCM
Do not double-prompt for HttpAuth passwords.
Commit
f423b10f7930e77324a9fce2b2e4d05eff7fd0370da4258bde39c699ad38c279
Parent
1fff403a686adae…
1 file changed
+1
-1
+1
-1
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -176,11 +176,11 @@ | ||
| 176 | 176 | }else{ |
| 177 | 177 | prompt_user("Basic Authorization user: ", &x); |
| 178 | 178 | zUser = mprintf("%b", &x); |
| 179 | 179 | zPrompt = mprintf("HTTP password for %b: ", &x); |
| 180 | 180 | blob_reset(&x); |
| 181 | - prompt_for_password(zPrompt, &x, 1); | |
| 181 | + prompt_for_password(zPrompt, &x, 0); | |
| 182 | 182 | zPw = mprintf("%b", &x); |
| 183 | 183 | zHttpAuth = mprintf("%s:%s", zUser, zPw); |
| 184 | 184 | free(zUser); |
| 185 | 185 | free(zPw); |
| 186 | 186 | free(zPrompt); |
| 187 | 187 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -176,11 +176,11 @@ | |
| 176 | }else{ |
| 177 | prompt_user("Basic Authorization user: ", &x); |
| 178 | zUser = mprintf("%b", &x); |
| 179 | zPrompt = mprintf("HTTP password for %b: ", &x); |
| 180 | blob_reset(&x); |
| 181 | prompt_for_password(zPrompt, &x, 1); |
| 182 | zPw = mprintf("%b", &x); |
| 183 | zHttpAuth = mprintf("%s:%s", zUser, zPw); |
| 184 | free(zUser); |
| 185 | free(zPw); |
| 186 | free(zPrompt); |
| 187 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -176,11 +176,11 @@ | |
| 176 | }else{ |
| 177 | prompt_user("Basic Authorization user: ", &x); |
| 178 | zUser = mprintf("%b", &x); |
| 179 | zPrompt = mprintf("HTTP password for %b: ", &x); |
| 180 | blob_reset(&x); |
| 181 | prompt_for_password(zPrompt, &x, 0); |
| 182 | zPw = mprintf("%b", &x); |
| 183 | zHttpAuth = mprintf("%s:%s", zUser, zPw); |
| 184 | free(zUser); |
| 185 | free(zPw); |
| 186 | free(zPrompt); |
| 187 |