mirror of https://github.com/huashengdun/webssh
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.pull/75/head
parent
8577c1c845
commit
4a48468729
|
@ -662,6 +662,14 @@ jQuery(function($){
|
||||||
data._origin = event_origin;
|
data._origin = event_origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (var datum in data) {
|
||||||
|
var value = data[datum];
|
||||||
|
if (value){
|
||||||
|
window.localStorage.setItem(datum, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
restore_items(fields);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
type: 'post',
|
type: 'post',
|
||||||
|
|
Loading…
Reference in New Issue