mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
Set modification timestamps for new users and groups during creation
Co-authored-by: nitnelave <796633+nitnelave@users.noreply.github.com>
This commit is contained in:
@@ -206,6 +206,7 @@ impl GroupBackendHandler for SqlBackendHandler {
|
|||||||
lowercase_display_name: Set(lower_display_name),
|
lowercase_display_name: Set(lower_display_name),
|
||||||
creation_date: Set(now),
|
creation_date: Set(now),
|
||||||
uuid: Set(uuid),
|
uuid: Set(uuid),
|
||||||
|
modified_date: Set(now),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
Ok(self
|
Ok(self
|
||||||
|
|||||||
@@ -327,6 +327,8 @@ impl UserBackendHandler for SqlBackendHandler {
|
|||||||
display_name: to_value(&request.display_name),
|
display_name: to_value(&request.display_name),
|
||||||
creation_date: ActiveValue::Set(now),
|
creation_date: ActiveValue::Set(now),
|
||||||
uuid: ActiveValue::Set(uuid),
|
uuid: ActiveValue::Set(uuid),
|
||||||
|
modified_date: ActiveValue::Set(now),
|
||||||
|
password_modified_date: ActiveValue::Set(now),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let mut new_user_attributes = Vec::new();
|
let mut new_user_attributes = Vec::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user