Still
This commit is contained in:
parent
165d8bb729
commit
aaf2f3d1ac
|
@ -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: ®ister.username,
|
||||
name: None,
|
||||
password_digest: password_digest.to_string().as_bytes(),
|
||||
|
|
Loading…
Reference in a new issue