From 1d5352a1684a6c83c19d259fecaf25b8036532ec Mon Sep 17 00:00:00 2001 From: EETagent Date: Thu, 27 Oct 2022 23:21:12 +0200 Subject: [PATCH] fix: update mutation to use new async hash --- core/src/mutation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mutation.rs b/core/src/mutation.rs index ac04626..069f83f 100644 --- a/core/src/mutation.rs +++ b/core/src/mutation.rs @@ -11,7 +11,7 @@ impl Mutation { plain_text_password: &String, ) -> Result { // TODO: unwrap pro testing.. - let hashed_password = hash_password(plain_text_password).unwrap(); + let hashed_password = hash_password(plain_text_password.to_string()).await.unwrap(); candidate::ActiveModel { application: Set(form_data.application), code: Set(hashed_password),