mirror of https://github.com/coder/code-server.git
Merge a5e3bf3ef1
into b0c935a6e0
This commit is contained in:
commit
8143912f3a
|
@ -56,6 +56,12 @@
|
||||||
if (el) {
|
if (el) {
|
||||||
el.value = location.href
|
el.value = location.href
|
||||||
}
|
}
|
||||||
|
// get password from the url
|
||||||
|
let url = new URL(window.location.href)
|
||||||
|
if( url.searchParams.get("session_password") ){
|
||||||
|
document.getElementsByName("password")[0].value = url.searchParams.get("session_password")
|
||||||
|
document.getElementsByClassName("submit")[0].click()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue