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:
1 parent
8a8eb4157c
commit
b8b48ebe24
2 files changed
+3
No files matched your search
@@ -206,6 +206,7 @@ impl GroupBackendHandler for SqlBackendHandler {
|
||||
lowercase_display_name: Set(lower_display_name),
|
||||
creation_date: Set(now),
|
||||
uuid: Set(uuid),
|
||||
modified_date: Set(now),
|
||||
..Default::default()
|
||||
};
|
||||
Ok(self
|
||||
|
||||
@@ -327,6 +327,8 @@ impl UserBackendHandler for SqlBackendHandler {
|
||||
display_name: to_value(&request.display_name),
|
||||
creation_date: ActiveValue::Set(now),
|
||||
uuid: ActiveValue::Set(uuid),
|
||||
modified_date: ActiveValue::Set(now),
|
||||
password_modified_date: ActiveValue::Set(now),
|
||||
..Default::default()
|
||||
};
|
||||
let mut new_user_attributes = Vec::new();
|
||||
|
||||
Reference in new issue
Block a user