add sensitive input status code support

This commit is contained in:
yggverse 2024-10-17 16:34:35 +03:00
parent a15738f391
commit 861046e162
8 changed files with 231 additions and 18 deletions

View file

@ -284,12 +284,20 @@ impl Page {
let description = gformat!("{placeholder}");
// Make input form
input.set_new_response(
action_page_open, uri,
Some(&description),
Some(1024),
"11" == code.as_str() // sensitive input
);
if "11" == code.as_str() { // sensitive input
input.set_new_sensitive(
action_page_open, uri,
Some(&description),
Some(1024),
);
} else {
input.set_new_response(
action_page_open, uri,
Some(&description),
Some(1024),
);
}
// Update meta
meta.borrow_mut().status = Some(status);