Skip to content

Commit 5fafeae

Browse files
committed
DSS-1171
Updating access granted email template for URL and admin email
1 parent f85c51d commit 5fafeae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/StrDss.Service/EmailTemplates/AccessRequestApproval.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public override string GetContent()
1616
Subject = "STR Data Portal - Access Granted";
1717

1818
return
19-
$@"You have been granted access to the Short Term Rental Data Portal. Please access the portal here: {Link}. If you have any issues accessing this link, please contact {AdminEmail}.";
19+
$@"You have been granted access to the Short Term Rental Data Portal. Please access the portal here: <a href='{Link}'>{Link}</a>. If you have any issues accessing this link, please contact <a href='mailto:{AdminEmail}'>{AdminEmail}</a>.";
2020
}
2121

2222
}

server/StrDss.Service/UserService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public async Task<Dictionary<string, List<string>>> ApproveAccessRequest(AccessR
375375
var template = new AccessRequestApproval(_emailService)
376376
{
377377
Link = GetHostUrl(),
378-
AdminEmail = _currentUser.EmailAddress,
378+
AdminEmail = Environment.GetEnvironmentVariable("ADMIN_EMAIL") ?? "dssadmin@gov.bc.ca",
379379
To = new string[] { user.EmailAddressDsc! },
380380
Info = $"Approval email for {user.DisplayNm}"
381381
};

0 commit comments

Comments
 (0)