From aaf2f3d1ac9686714343a840ef67dbd8c95b4bbd Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 13 Nov 2023 16:16:40 -0600 Subject: [PATCH] Still --- src/router.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router.rs b/src/router.rs index c220127..1901ce4 100644 --- a/src/router.rs +++ b/src/router.rs @@ -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(),