diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-19 10:32:52 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-19 10:32:52 +0100 |
commit | f0ad31971e53a1c1bfcca2723eea0bd1cbe9ba21 (patch) | |
tree | 28912cbb2db4d593bce69085b0ddb9a6e04a5ef1 /server/src/routes/ui/account/settings.rs | |
parent | 349f66ec59e9fcdd21959523ecabd16e5b2e471f (diff) | |
download | jellything-f0ad31971e53a1c1bfcca2723eea0bd1cbe9ba21.tar jellything-f0ad31971e53a1c1bfcca2723eea0bd1cbe9ba21.tar.bz2 jellything-f0ad31971e53a1c1bfcca2723eea0bd1cbe9ba21.tar.zst |
ui: switch account
Diffstat (limited to 'server/src/routes/ui/account/settings.rs')
-rw-r--r-- | server/src/routes/ui/account/settings.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/routes/ui/account/settings.rs b/server/src/routes/ui/account/settings.rs index 625ae7f..66a4f88 100644 --- a/server/src/routes/ui/account/settings.rs +++ b/server/src/routes/ui/account/settings.rs @@ -7,7 +7,7 @@ use super::{format_form_error, hash_password}; use crate::{ database::Database, routes::ui::{ - account::session::Session, + account::{rocket_uri_macro_r_account_login, session::Session}, error::MyResult, layout::{DynLayoutPage, LayoutPage}, }, @@ -49,6 +49,7 @@ fn settings_page(session: Session, flash: Option<MyResult<String>>) -> DynLayout } } h2 { "Account" } + a.switch_account[href=uri!(r_account_login())] { "Switch Account" } form[method="POST", action=uri!(r_account_settings_post())] { label[for="username"] { "Username" } input[type="text", id="username", disabled, value=&session.user.name]; |