iam add_user

This commit is contained in:
weisd
2025-01-12 03:29:57 +08:00
parent 0aaef2d9a8
commit 121be5eeda
4 changed files with 38 additions and 3 deletions
+5
View File
@@ -104,3 +104,8 @@ pub async fn list_users() -> crate::Result<HashMap<String, madmin::UserInfo>> {
pub async fn get_user(ak: &str) -> crate::Result<(Option<UserIdentity>, bool)> {
get()?.check_key(ak).await
}
pub async fn create_user(ak: &str, sk: &str, status: &str) -> crate::Result<OffsetDateTime> {
get()?.add_user(ak, sk, status).await
// notify
}