From 5521a866934e4a8f6d4f3ca7bfe3aefa3808d113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Wed, 1 May 2019 16:19:22 +0200 Subject: [PATCH] Change path for served images to avoid collision with vault images --- src/api/web.rs | 2 +- src/static/templates/email/invite_accepted.html.hbs | 4 ++-- src/static/templates/email/invite_confirmed.html.hbs | 4 ++-- src/static/templates/email/pw_hint_none.html.hbs | 4 ++-- src/static/templates/email/pw_hint_some.html.hbs | 4 ++-- src/static/templates/email/send_org_invite.html.hbs | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/api/web.rs b/src/api/web.rs index 0c60a35..6185c32 100644 --- a/src/api/web.rs +++ b/src/api/web.rs @@ -64,7 +64,7 @@ fn alive() -> Json { Json(format_date(&Utc::now().naive_utc())) } -#[get("/images/")] +#[get("/bwrs_images/")] fn images(filename: String) -> Result>, Error> { let image_type = ContentType::new("image", "png"); match filename.as_ref() { diff --git a/src/static/templates/email/invite_accepted.html.hbs b/src/static/templates/email/invite_accepted.html.hbs index cb8e3c7..6c36f37 100644 --- a/src/static/templates/email/invite_accepted.html.hbs +++ b/src/static/templates/email/invite_accepted.html.hbs @@ -82,7 +82,7 @@ Invitation accepted @@ -118,7 +118,7 @@ Invitation accepted diff --git a/src/static/templates/email/invite_confirmed.html.hbs b/src/static/templates/email/invite_confirmed.html.hbs index 81b5fef..c5c0154 100644 --- a/src/static/templates/email/invite_confirmed.html.hbs +++ b/src/static/templates/email/invite_confirmed.html.hbs @@ -82,7 +82,7 @@ Invitation to {{org_name}} confirmed
@@ -114,7 +114,7 @@ Invitation to {{org_name}} confirmed diff --git a/src/static/templates/email/pw_hint_none.html.hbs b/src/static/templates/email/pw_hint_none.html.hbs index ef13b15..1cbc8cb 100644 --- a/src/static/templates/email/pw_hint_none.html.hbs +++ b/src/static/templates/email/pw_hint_none.html.hbs @@ -82,7 +82,7 @@ Sorry, you have no password hint...
@@ -113,7 +113,7 @@ Sorry, you have no password hint... diff --git a/src/static/templates/email/pw_hint_some.html.hbs b/src/static/templates/email/pw_hint_some.html.hbs index 9922071..34a9581 100644 --- a/src/static/templates/email/pw_hint_some.html.hbs +++ b/src/static/templates/email/pw_hint_some.html.hbs @@ -82,7 +82,7 @@ Your master password hint
@@ -119,7 +119,7 @@ Your master password hint diff --git a/src/static/templates/email/send_org_invite.html.hbs b/src/static/templates/email/send_org_invite.html.hbs index c8cec68..ea3e7ee 100644 --- a/src/static/templates/email/send_org_invite.html.hbs +++ b/src/static/templates/email/send_org_invite.html.hbs @@ -82,7 +82,7 @@ Join {{org_name}}
@@ -121,7 +121,7 @@ Join {{org_name}}