Next release #30

Merged
phoenix merged 5 commits from devel into main 2025-04-05 18:38:38 +00:00
2 changed files with 5 additions and 6 deletions
Showing only changes of commit d476b128cb - Show all commits

View File

@@ -9,6 +9,7 @@ license = "MIT"
serde = { version = "1.0.218", features = ["derive"] }
serde_json = { version = "1.0.139" }
rand = { version = "0.9" }
time = { version = "0.3.41", features = ["macros", "serde"] }
uuid = { version = "1.16.0", features = ["v4", "serde"] }
[dev-dependencies]
tempfile = { version = "3.19.1" }

View File

@@ -21,12 +21,10 @@ pub struct User {
#[serde(skip_serializing_if = "String::is_empty")]
pub lastname: String,
pub email_verified: bool,
#[serde(skip_serializing_if = "String::is_empty")]
pub date_created: String,
pub date_created: Option<time::OffsetDateTime>,
#[serde(skip_serializing_if = "String::is_empty")]
pub status: String,
#[serde(skip_serializing_if = "String::is_empty")]
pub last_login: String,
pub last_login: Option<time::OffsetDateTime>,
#[serde(skip_serializing_if = "init::is_uuid_nil")]
pub salt_id: uuid::Uuid,
}
@@ -42,9 +40,9 @@ impl Default for User {
firstname: String::new(),
lastname: String::new(),
email_verified: false,
date_created: String::new(),
date_created: None,
status: String::new(),
last_login: String::new(),
last_login: None,
salt_id: uuid::Uuid::nil(),
}
}