geforkt von mirrored/vaultwarden
Commits vergleichen
3 Commits
9d0e4e2c82
...
2c1522ed88
Autor | SHA1 | Datum | |
---|---|---|---|
2c1522ed88 | |||
|
3bd4e42fb0 | ||
|
89e94b1d91 |
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -309,7 +309,7 @@ impl OrgPolicy {
|
|||
match OrgPolicy::find_by_org_and_type(org_uuid, OrgPolicyType::ResetPassword, conn).await {
|
||||
Some(policy) => match serde_json::from_str::<UpCase<ResetPasswordDataModel>>(&policy.data) {
|
||||
Ok(opts) => {
|
||||
return opts.data.AutoEnrollEnabled;
|
||||
return policy.enabled && opts.data.AutoEnrollEnabled;
|
||||
}
|
||||
_ => error!("Failed to deserialize ResetPasswordDataModel: {}", policy.data),
|
||||
},
|
||||
|
|
Laden …
In neuem Issue referenzieren