Skip to content

Commit

Permalink
login_with_password_fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dzlk17 committed Nov 28, 2024
1 parent dc4b93b commit 7d4cf45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/http/cloud/login/login_with_password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use ts_rs::TS;
pub struct HttpLoginRequest {
#[garde(email)]
pub email: String,
#[garde(ascii, length(min = 6, max = 30))]
#[garde(ascii)]
pub password: String,
#[garde(skip)]
pub enforce_ip: bool,
Expand Down Expand Up @@ -62,7 +62,8 @@ pub async fn login_with_password(
));
}
};

println!("useeeeeeeeeeeeeeeeeeeeeeeeer");
println!("{:?}", user);
// Check if user has password
let password_hash = match user.password_hash {
Some(password_hash) => password_hash,
Expand Down

0 comments on commit 7d4cf45

Please sign in to comment.