aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/two_factor.rs
diff options
context:
space:
mode:
authorDaniel GarcĂ­a <[email protected]>2024-06-16 21:39:30 +0200
committerBlackDex <[email protected]>2024-06-19 13:13:34 +0200
commitccdcbc89ce7054afb7e7c7910a5ef5fb721a1605 (patch)
tree2b1923260ca72d0ce005fa01b5b5ad37ba4c99b3 /src/db/models/two_factor.rs
parent55fdee3bf8f45ccc7a5a188ab17855ac9866a979 (diff)
downloadvaultwarden-ccdcbc89ce7054afb7e7c7910a5ef5fb721a1605.tar.gz
vaultwarden-ccdcbc89ce7054afb7e7c7910a5ef5fb721a1605.zip
Change API inputs/outputs and structs to camelCase
Diffstat (limited to 'src/db/models/two_factor.rs')
-rw-r--r--src/db/models/two_factor.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/db/models/two_factor.rs b/src/db/models/two_factor.rs
index 530e35b4..2120a0e2 100644
--- a/src/db/models/two_factor.rs
+++ b/src/db/models/two_factor.rs
@@ -54,17 +54,17 @@ impl TwoFactor {
pub fn to_json(&self) -> Value {
json!({
- "Enabled": self.enabled,
- "Key": "", // This key and value vary
- "Object": "twoFactorAuthenticator" // This value varies
+ "enabled": self.enabled,
+ "key": "", // This key and value vary
+ "Oobject": "twoFactorAuthenticator" // This value varies
})
}
pub fn to_json_provider(&self) -> Value {
json!({
- "Enabled": self.enabled,
- "Type": self.atype,
- "Object": "twoFactorProvider"
+ "enabled": self.enabled,
+ "type": self.atype,
+ "object": "twoFactorProvider"
})
}
}