MCPcopy Create free account
hub / github.com/apache/cloudstack / setCredentials

Function setCredentials

systemvm/agent/noVNC/app/ui.js:1337–1353  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1335 },
1336
1337 setCredentials(e) {
1338 // Prevent actually submitting the form
1339 e.preventDefault();
1340
1341 let inputElemUsername = document.getElementById('noVNC_username_input');
1342 const username = inputElemUsername.value;
1343
1344 let inputElemPassword = document.getElementById('noVNC_password_input');
1345 const password = inputElemPassword.value;
1346 // Clear the input after reading the password
1347 inputElemPassword.value = "";
1348
1349 UI.rfb.sendCredentials({ username: username, password: password });
1350 UI.reconnectPassword = password;
1351 document.getElementById('noVNC_credentials_dlg')
1352 .classList.remove('noVNC_open');
1353 },
1354
1355/* ------^-------
1356 * /PASSWORD

Callers

nothing calls this directly

Calls 2

sendCredentialsMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected