aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/user.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/models/user.rs')
-rw-r--r--src/db/models/user.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/models/user.rs b/src/db/models/user.rs
index 150a97b0..2f7183bf 100644
--- a/src/db/models/user.rs
+++ b/src/db/models/user.rs
@@ -20,7 +20,7 @@ pub struct User {
pub password_iterations: i32,
pub password_hint: Option<String>,
- pub key: String,
+ pub akey: String,
pub private_key: Option<String>,
pub public_key: Option<String>,
@@ -58,7 +58,7 @@ impl User {
updated_at: now,
name: email.clone(),
email,
- key: String::new(),
+ akey: String::new(),
password_hash: Vec::new(),
salt: crypto::get_random_64(),
@@ -140,7 +140,7 @@ impl User {
"MasterPasswordHint": self.password_hint,
"Culture": "en-US",
"TwoFactorEnabled": twofactor_enabled,
- "Key": self.key,
+ "Key": self.akey,
"PrivateKey": self.private_key,
"SecurityStamp": self.security_stamp,
"Organizations": orgs_json,