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 authored and sehkone committed Jan 13, 2025
1 parent a237786 commit b5e1348
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 @@ -45,6 +45,11 @@ Versioning](https://semver.org/spec/v2.0.0.html).
- The GraphQL API for `WindowsThreat` event structure is changed to return `ID`
type instead of `usize` type value for the `cluster_id` field.
### 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 b5e1348

Please sign in to comment.