fix: update mutation to use new async hash

This commit is contained in:
EETagent 2022-10-27 23:21:12 +02:00
parent 19341192bb
commit 1d5352a168

View file

@ -11,7 +11,7 @@ impl Mutation {
plain_text_password: &String,
) -> Result<candidate::Model, DbErr> {
// 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),