diff --git a/admin_frontend/src/web_api.rs b/admin_frontend/src/web_api.rs index 936009d2..6d06e8c0 100644 --- a/admin_frontend/src/web_api.rs +++ b/admin_frontend/src/web_api.rs @@ -389,7 +389,7 @@ async fn logout_handler( state.session_store.del_user_session(session_id).await?; Ok(( jar.remove(Cookie::from("session_id")), - htmx_redirect("/web/login"), + htmx_redirect("/web"), )) } diff --git a/admin_frontend/templates/pages/open_appflowy_or_download.html b/admin_frontend/templates/pages/open_appflowy_or_download.html index 1dda5b15..352ab124 100644 --- a/admin_frontend/templates/pages/open_appflowy_or_download.html +++ b/admin_frontend/templates/pages/open_appflowy_or_download.html @@ -2,30 +2,16 @@ - Open App or Redirect + AppFlowy

Opening AppFlowy

-

If the app does not open, you will be redirected to the download page.

+

If AppFlowy does not open, you can click here to launch the app.

+

If AppFlowy is not installed, you can download AppFlowy manually.

diff --git a/src/mailer.rs b/src/mailer.rs index 88bf974e..b42a8439 100644 --- a/src/mailer.rs +++ b/src/mailer.rs @@ -55,10 +55,13 @@ impl Mailer { lettre::Address::new("notify", "appflowy.io")?, )) .to(lettre::message::Mailbox::new( - Some(param.username), + Some(param.username.clone()), email.parse().unwrap(), )) - .subject("AppFlowy Workpace Invitation") + .subject(format!( + "Action required: {} invited you to {} in AppFlowy", + param.username, param.workspace_name + )) .header(ContentType::TEXT_HTML) .body(rendered)?; @@ -70,7 +73,7 @@ impl Mailer { #[derive(serde::Serialize)] pub struct WorkspaceInviteMailerParam { pub user_icon_url: String, - pub username: String, + pub username: String, // Inviter pub workspace_name: String, pub workspace_icon_url: String, pub workspace_member_count: String,