1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-05-21 02:53:56 +00:00

Remove whitespace before processing tokens

This commit is contained in:
Daniel García 2019-01-07 20:37:14 +01:00
parent 21b85b78b1
commit 50eeb4f651
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
2 changed files with 8 additions and 3 deletions

View file

@ -78,7 +78,8 @@ pub fn send_invite(
format!(
"<html>
<p>You have been invited to join the <b>{}</b> organization.<br><br>
<a href=\"{}/#/accept-organization/?organizationId={}&organizationUserId={}&email={}&organizationName={}&token={}\">Click here to join</a></p>
<a href=\"{}/#/accept-organization/?organizationId={}&organizationUserId={}&email={}&organizationName={}&token={}\">
Click here to join</a></p>
<p>If you do not wish to join this organization, you can safely ignore this email.</p>
</html>",
org_name, CONFIG.domain, org_id.unwrap_or("_".to_string()), org_user_id.unwrap_or("_".to_string()), address, org_name, invite_token