This commit is contained in:
Daniel Flanagan 2023-11-13 16:16:40 -06:00
parent 165d8bb729
commit aaf2f3d1ac
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -6,7 +6,7 @@ use argon2::{
};
use axum::{
http::StatusCode,
response::{Html, IntoResponse, Response},
response::{Html, IntoResponse},
routing::get,
Form, Router,
};
@ -90,7 +90,7 @@ async fn register(
let argon2 = Argon2::default();
let password_digest = argon2.hash_password(register.password.as_bytes(), &salt)?;
let new_user = NewUser {
let _new_user = NewUser {
username: &register.username,
name: None,
password_digest: password_digest.to_string().as_bytes(),