(e)
| 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 |
nothing calls this directly
no test coverage detected