mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
add sensitive input status code support
This commit is contained in:
parent
a15738f391
commit
861046e162
8 changed files with 231 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue