rename password-related utils functions

This commit is contained in:
Charles Hall 2024-06-02 17:54:16 -07:00
parent aa4cd8b1e1
commit 71f3d84115
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
5 changed files with 7 additions and 7 deletions

View file

@ -135,7 +135,7 @@ impl service::users::Data for KeyValueDatabase {
password: Option<&str>,
) -> Result<()> {
if let Some(password) = password {
if let Ok(hash) = utils::calculate_password_hash(password) {
if let Ok(hash) = utils::hash_password(password) {
self.userid_password
.insert(user_id.as_bytes(), hash.as_bytes())?;
Ok(())