webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit 4a48468729f613ebb46ba094ec95e111cd0c5040
parent 8577c1c845b97b09428cbf503118c3eb627a8824
Author: Rajesh K Ilango <rilango@nvidia.com>
Date:   Fri, 26 Jul 2019 19:06:52 -0700

Change to fill form values from URL parameters.

This is useful when there is login failure and the form is either empty
or with values from previous attempt.

Diffstat:
Mwebssh/static/js/main.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js @@ -662,6 +662,14 @@ jQuery(function($){ data._origin = event_origin; } + for (var datum in data) { + var value = data[datum]; + if (value){ + window.localStorage.setItem(datum, value); + } + } + restore_items(fields); + $.ajax({ url: url, type: 'post',