Changeset 102535 in vbox
- Timestamp:
- Dec 8, 2023 11:26:06 AM (12 months ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r101035 r102535 2135 2135 { "--iso", 'i', RTGETOPT_REQ_STRING }, 2136 2136 { "--user", 'u', RTGETOPT_REQ_STRING }, 2137 { "--password", 'p', RTGETOPT_REQ_STRING }, 2138 { "--password-file", 'X', RTGETOPT_REQ_STRING }, 2137 { "--password", 'p', RTGETOPT_REQ_STRING }, /* Sets the user password. Keep for backwards compatibility! */ 2139 2138 { "--full-user-name", 'U', RTGETOPT_REQ_STRING }, 2140 2139 { "--key", 'k', RTGETOPT_REQ_STRING }, … … 2195 2194 2196 2195 case 'p': // --password 2197 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER( Password)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE);2196 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(UserPassword)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE); 2198 2197 break; 2199 2198 … … 2204 2203 if (rcExit != RTEXITCODE_SUCCESS) 2205 2204 return rcExit; 2206 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER( Password)(Bstr(strPassword).raw()), RTEXITCODE_FAILURE);2205 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(UserPassword)(Bstr(strPassword).raw()), RTEXITCODE_FAILURE); 2207 2206 break; 2208 2207 } … … 2412 2411 SHOW_STR_ATTR(IsoPath, "isoPath"); 2413 2412 SHOW_STR_ATTR(User, "user"); 2414 SHOW_STR_ATTR( Password, "password");2413 SHOW_STR_ATTR(UserPassword, "password") /* Keep for backwards compatibility! */ 2415 2414 SHOW_STR_ATTR(FullUserName, "fullUserName"); 2416 2415 SHOW_STR_ATTR(ProductKey, "productKey"); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r101316 r102535 615 615 { 616 616 AssertReturn(!m_comUnattended.isNull(), QString()); 617 return m_comUnattended.Get Password();617 return m_comUnattended.GetUserPassword(); 618 618 } 619 619 … … 621 621 { 622 622 AssertReturnVoid(!m_comUnattended.isNull()); 623 m_comUnattended.Set Password(strPassword);623 m_comUnattended.SetUserPassword(strPassword); 624 624 AssertReturnVoid(checkUnattendedInstallError(m_comUnattended)); 625 625 }
Note:
See TracChangeset
for help on using the changeset viewer.