refactor: additional responsibilities to middleware, simplified handlers

fix
This commit is contained in:
Per Stark
2026-01-17 21:04:27 +01:00
parent a9fda67209
commit ece744d5a0
16 changed files with 286 additions and 293 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ use axum::{
use axum_htmx::HxBoosted;
use serde::{Deserialize, Serialize};
use common::storage::types::user::User;
use common::storage::types::user::{Theme, User};
use crate::{
html_state::HtmlState,
@@ -50,7 +50,7 @@ pub async fn process_signup_and_show_verification(
form.password,
&state.db,
form.timezone,
"system".to_string(),
Theme::System.as_str().to_string(),
)
.await
{