Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use password in URL to login similar as in jupyter notebook servers #6734

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/browser/pages/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ <h1 class="main">{{WELCOME_TEXT}}</h1>
if (el) {
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>
</body>
</html>