add dns_prefill attribute to entered login params and implement parsing

for it
This commit is contained in:
Simon Laux
2026-01-16 22:42:42 +01:00
parent 659d21aa9d
commit 252fc8480e
5 changed files with 65 additions and 1 deletions

View File

@@ -97,6 +97,9 @@ pub struct EnteredLoginParam {
/// If true, login via OAUTH2 (not recommended anymore)
pub oauth2: bool,
/// IP addresses for prefilling DNS
pub dns_prefill: Vec<String>,
}
impl EnteredLoginParam {
@@ -191,6 +194,7 @@ impl EnteredLoginParam {
},
certificate_checks,
oauth2,
dns_prefill: Default::default(),
})
}
@@ -360,6 +364,7 @@ mod tests {
},
certificate_checks: Default::default(),
oauth2: false,
dns_prefill: Default::default(),
};
param.save(&t).await?;
assert_eq!(