Skip to content

Commit

Permalink
Remove obsolete reset_admin_password function
Browse files Browse the repository at this point in the history
  • Loading branch information
msk committed Jan 12, 2025
1 parent 3aebb1b commit 7dd139d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions src/graphql/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7dd139d

Please sign in to comment.