diff options
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]; |