fix?: now properly sends teh reset emails
This commit is contained in:
parent
73013f41f0
commit
35896efa04
1 changed files with 8 additions and 3 deletions
|
@ -162,7 +162,7 @@ pub mod password {
|
||||||
Some(x) => x,
|
Some(x) => x,
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Ok(res) = sqlx::query_as::<_, AccountsRecovery>(
|
match sqlx::query_as::<_, AccountsRecovery>(
|
||||||
r#"
|
r#"
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM accounts JOIN accounts_wolves ON accounts.id_wolves = accounts_wolves.id_wolves
|
FROM accounts JOIN accounts_wolves ON accounts.id_wolves = accounts_wolves.id_wolves
|
||||||
|
@ -174,8 +174,13 @@ pub mod password {
|
||||||
.fetch_all(pool)
|
.fetch_all(pool)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
if !res.is_empty() {
|
Ok(res) => {
|
||||||
return Some(res[0].to_owned());
|
if !res.is_empty() {
|
||||||
|
return Some(res[0].to_owned());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
dbg!(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue