mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-11-01 09:15:23 +00:00
Add configurable Fill Assist rules URL (#7791)
This commit is contained in:
6 files changed
+94
-5
No files matched your search
@@ -53,6 +53,8 @@ pub enum OrgPolicyType {
|
||||
// AutoConfirm = 18, // Not supported (not implemented yet)
|
||||
// BlockClaimedDomainAccountCreation = 19, // Not supported (Not AGPLv3 Licensed)
|
||||
OrganizationUserNotification = 20,
|
||||
// SendControls = 21, // Not supported yet
|
||||
FillAssist = 22,
|
||||
}
|
||||
|
||||
// https://github.com/bitwarden/server/blob/9ebe16587175b1c0e9208f84397bb75d0d595510/src/Core/AdminConsole/Models/Data/Organizations/Policies/SendOptionsPolicyData.cs#L5
|
||||
@@ -71,6 +73,14 @@ pub struct ResetPasswordDataModel {
|
||||
pub auto_enroll_enabled: bool,
|
||||
}
|
||||
|
||||
// https://github.com/bitwarden/server/blob/13bc813de8e715a71d3410f1e584e87ccdf76025/src/Core/AdminConsole/Models/Data/Organizations/Policies/FillAssistPolicyData.cs
|
||||
#[derive(Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct FillAssistPolicyData {
|
||||
#[serde(alias = "RulesUrl")]
|
||||
pub rules_url: Option<String>,
|
||||
}
|
||||
|
||||
/// Local methods
|
||||
impl OrgPolicy {
|
||||
pub fn new(org_uuid: OrganizationId, atype: OrgPolicyType, enabled: bool, data: String) -> Self {
|
||||
|
||||
Reference in new issue
Block a user