mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 20:42:15 +00:00
fix: update mutation to use new async hash
This commit is contained in:
parent
19341192bb
commit
1d5352a168
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue