fix: computing password verification no matter the username status
This commit is contained in:
parent
08ffe8c850
commit
b030163fb1
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ pub async fn handle_login(
|
|||
|
||||
let user_in_db = user::get(db, &values.username).await?;
|
||||
let user = match user_in_db {
|
||||
None => return Ok(miss()),
|
||||
None => {
|
||||
task::spawn_blocking(move || pw::verify("meow", "$argon2i$v=19$m=65536,t=3,p=1$fJ+f67UGHB+EIjGIDEwbSQ$V/nZPHmdyqHq8fTBTdt3sEmTyr0W7i/F98EIxaaJJt0")).await??;
|
||||
return Ok(miss());
|
||||
}
|
||||
Some(v) => v,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue