mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-20 12:46:39 +00:00
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.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user