Skip to content

Commit 21ca083

Browse files
authored
Merge pull request #40 from SentriusLLC/RemoveSessionID
Remove return of session ID
2 parents f1008b7 + 4997302 commit 21ca083

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

api/src/main/java/io/sentrius/sso/controllers/api/TerminalApiController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,12 @@ protected TerminalApiController(
5959
public ResponseEntity<String> resize(@RequestParam("sessionId") String sessionId, @RequestParam("width") double cols,
6060
@RequestParam(
6161
"height") double rows) throws GeneralSecurityException {
62-
log.info("resize");
6362
var sessionIdStr = cryptoService.decrypt(sessionId);
6463
var sessionIdLong = Long.parseLong(sessionIdStr);
6564

6665
sessionTrackingService.resize(sessionIdLong, cols, rows);
6766

68-
return ResponseEntity.ok(sessionId);
67+
return ResponseEntity.ok("resized");
6968
}
7069

7170
@GetMapping("/list")

api/src/main/resources/templates/sso/ssh/sso.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@
528528
'&height=' + height,
529529
cache: false
530530
});
531-
// $('#terminal .terminal').toggleClass('fullscreen');
532531
fitMap[id].fit();
533532
}
534533

@@ -799,22 +798,7 @@
799798
function setTerminalEvents(element, id) {
800799
// Ensure `element` is a jQuery object
801800
const $element = $(element);
802-
/*
803-
$element.mousedown(function (event) {
804-
event.preventDefault(); // Prevent default mousedown behavior
805-
806-
// Dynamically get the correct helper textarea for the given terminal instance
807-
const helperTextarea = document.querySelector(`#sentrius_term_${id} .xterm-helper-textarea`);
808-
809-
if (helperTextarea) {
810-
helperTextarea.focus(); // Explicitly focus the terminal input field
811-
} else {
812-
console.warn("Helper textarea not found for terminal ID:", id);
813-
}
814801

815-
console.log("mousedown on terminal", id);
816-
});
817-
*/
818802

819803
}
820804

0 commit comments

Comments
 (0)