From 193a0fd710ba436c65eed3c169962398458d55cf Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Wed, 15 Feb 2023 11:15:02 +0100 Subject: [PATCH] server: Remove trailing / from the domain URL --- server/src/infra/mail.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/infra/mail.rs b/server/src/infra/mail.rs index 8105d31..c10815c 100644 --- a/server/src/infra/mail.rs +++ b/server/src/infra/mail.rs @@ -65,7 +65,9 @@ compromised. You should reset your password and contact an administrator. To reset your password please visit the following URL: {}/reset-password/step2/{} Please contact an administrator if you did not initiate the process.", - username, domain, token + username, + domain.trim_end_matches('/'), + token ); send_email(to, "[LLDAP] Password reset requested", body, options).await }