From 7dd139debb14e9828f4cef0120b0880b0eb5523c Mon Sep 17 00:00:00 2001 From: "Min S. Kim" Date: Sat, 11 Jan 2025 16:41:41 -0800 Subject: [PATCH] Remove obsolete reset_admin_password function --- CHANGELOG.md | 5 +++++ src/graphql/account.rs | 11 ----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49b598b..4d9ee97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,11 @@ Versioning](https://semver.org/spec/v2.0.0.html). `Arc` and `Mutex`. This change simplifies the code and improves performance by removing unnecessary locking. +### Removed + +- Removed `graphql::account::reset_admin_password` function as it was obsoleted + by the GraphQL API `resetAdminPassword`. + ### Fixed - Resolved an issue in the `applyNode` GraphQL API, where configuration values diff --git a/src/graphql/account.rs b/src/graphql/account.rs index 3f31295..a99a495 100644 --- a/src/graphql/account.rs +++ b/src/graphql/account.rs @@ -803,17 +803,6 @@ pub fn set_initial_admin_password(store: &Store) -> anyhow::Result<()> { map.insert(&account) } -/// Resets the administrator password to the initial value. -/// -/// # Errors -/// -/// This function returns an error if it fails to generate random bytes for password. -pub fn reset_admin_password(store: &Store) -> anyhow::Result<()> { - let map = store.account_map(); - let account = initial_credential()?; - map.put(&account) -} - /// Returns the initial administrator username and salted password. /// /// # Errors