mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
feat: Toggle to "Disable new IP Login authorization" emails in /admin (#1030)
Co-authored-by: Jiralite <[email protected]> Co-authored-by: Hampus <[email protected]>
This commit is contained in:
10 files changed
+149
-44
No files matched your search
@@ -140,6 +140,10 @@ pub struct InstanceEmailIntegrationResponse {
|
||||
pub from_name: Option<String>,
|
||||
#[serde(default)]
|
||||
pub smtp: InstanceEmailSmtpIntegrationResponse,
|
||||
#[serde(default)]
|
||||
pub disable_new_ip_authorization: bool,
|
||||
#[serde(default)]
|
||||
pub effective_disable_new_ip_authorization: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||
@@ -579,6 +583,8 @@ pub struct InstanceEmailIntegrationUpdateRequest {
|
||||
pub from_name: Option<String>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub smtp: Option<InstanceEmailSmtpIntegrationUpdateRequest>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub disable_new_ip_authorization: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Serialize)]
|
||||
|
||||
Reference in new issue
Block a user