mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
rename password-related utils functions
This commit is contained in:
parent
aa4cd8b1e1
commit
71f3d84115
5 changed files with 7 additions and 7 deletions
|
|
@ -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(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue