aboutsummaryrefslogtreecommitdiff
path: root/server/src/ui/account/mod.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-01-25 15:01:38 +0100
committermetamuffin <metamuffin@disroot.org>2026-01-25 15:01:38 +0100
commit5075aede44cb8ab2df10e6debba38483e8d11e96 (patch)
treef719e4b4a0c29f3a27b4fa7cf0a6ee6f7739125c /server/src/ui/account/mod.rs
parent53361f4c6027d1569a707ce58889bc2c2ea3749c (diff)
downloadjellything-5075aede44cb8ab2df10e6debba38483e8d11e96.tar
jellything-5075aede44cb8ab2df10e6debba38483e8d11e96.tar.bz2
jellything-5075aede44cb8ab2df10e6debba38483e8d11e96.tar.zst
remove some unused imports; css reload; port login logic
Diffstat (limited to 'server/src/ui/account/mod.rs')
-rw-r--r--server/src/ui/account/mod.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/server/src/ui/account/mod.rs b/server/src/ui/account/mod.rs
index 35cf52e..429b70a 100644
--- a/server/src/ui/account/mod.rs
+++ b/server/src/ui/account/mod.rs
@@ -6,25 +6,16 @@
pub mod settings;
use super::error::MyError;
-use crate::{
- request_info::{language::AcceptLanguage, A},
- ui::{error::MyResult, home::rocket_uri_macro_r_home},
-};
+use crate::ui::{error::MyResult, home::rocket_uri_macro_r_home};
use anyhow::anyhow;
use jellyimport::is_importing;
-use jellylogic::{account::register_user, login::login_logic, session::Session};
-use jellyui::{
- account::{AccountLogin, AccountLogout, AccountRegister, AccountRegisterSuccess},
- render_page,
- scaffold::{RenderInfo, SessionInfo},
-};
use rocket::{
+ FromForm,
form::{Contextual, Form},
get,
http::{Cookie, CookieJar},
post,
- response::{content::RawHtml, Redirect},
- FromForm,
+ response::{Redirect, content::RawHtml},
};
use serde::{Deserialize, Serialize};