dav/main.c

changeset 471
d8e883bd1fd8
parent 470
6bf798ad3aec
child 472
08d2d1263429
equal deleted inserted replaced
470:6bf798ad3aec 471:d8e883bd1fd8
405 } 405 }
406 406
407 static DavSession* connect_to_repo(Repository *repo, CmdArgs *a) { 407 static DavSession* connect_to_repo(Repository *repo, CmdArgs *a) {
408 char *user = repo->user; 408 char *user = repo->user;
409 char *password = repo->password; 409 char *password = repo->password;
410 if(repo->stored_user) { 410 if(repo->stored_user && !cmd_getoption(a, "noinput")) {
411 PwdStore *pstore = get_pwdstore(); 411 PwdStore *pstore = get_pwdstore();
412 if(pstore) { 412 if(pstore) {
413 char *ps_password = util_password_input("Unlock password store: "); 413 char *ps_password = util_password_input("Unlock password store: ");
414 if(ps_password) { 414 if(ps_password) {
415 if(!pwdstore_setpassword(pstore, ps_password)) { 415 if(!pwdstore_setpassword(pstore, ps_password)) {

mercurial