diff --git a/server/StrDss.Service/EmailTemplates/BatchTakedownRequest.cs b/server/StrDss.Service/EmailTemplates/BatchTakedownRequest.cs index 1a4f8b7a..9b6e95eb 100644 --- a/server/StrDss.Service/EmailTemplates/BatchTakedownRequest.cs +++ b/server/StrDss.Service/EmailTemplates/BatchTakedownRequest.cs @@ -14,7 +14,12 @@ public override string GetContent() Subject = "Takedown Request"; return (Preview ? GetPreviewContent() : "") + $@" -The platform is required to remove the listing within 8 days of the date it was delivered. If the platform fails to remove the listing, local governments can escalate the matter to the Director of the Provincial STR Compliance and Enforcement Unit at: CEUescalations@gov.bc.ca.

+The short-term rental listings in the attached file are the subject of a request by a local government described under s. 18(3) of the Short-Term Rental Accommodations Act and s. 16 of the Short-Term Rental Accommodations Regulation.

+A “takedown request” (a request for a platform to cease providing platform services, e.g., removing a listing) has been submitted for each of these listings by the respective local government via the Province of British Columbia’s Short-term Rental (STR) Data Portal.

+In accordance with s. 18(3) of the Short-Term Rental Accommodations Act and s. 16 (3) of the Short-Term Rental Accommodations Regulation, please cease providing platform services in respect of the attached platform offers within 5 days from the date of receipt of this request.

+Failure to comply with this request could result in enforcement actions or penalties under the Short-Term Rental Accommodations Act.

+For more information on these requests, or local government short-term rental business licences, please contact the local government.

+For more information on the Short-term Rental Accommodations Act, please visit: New rules for short-term rentals - Province of British Columbia (gov.bc.ca)

This email has been automatically generated. Please do not reply to this email. "; } diff --git a/server/StrDss.Service/EmailTemplates/NewAccessRequest.cs b/server/StrDss.Service/EmailTemplates/NewAccessRequest.cs index 1497296f..86b5b057 100644 --- a/server/StrDss.Service/EmailTemplates/NewAccessRequest.cs +++ b/server/StrDss.Service/EmailTemplates/NewAccessRequest.cs @@ -15,7 +15,11 @@ public override string GetContent() Subject = "STR Data Portal - New Access Request"; return -$@"New access request has been raised and requires review. {Link}"; +$@"Hello,

+A new access request is waiting for you to approve.

+To approve or reject, please visit: {Link}

+Thank you. +"; } } } diff --git a/server/StrDss.Service/EmailTemplates/TakedownNotice.cs b/server/StrDss.Service/EmailTemplates/TakedownNotice.cs index b80ea1ad..dd552889 100644 --- a/server/StrDss.Service/EmailTemplates/TakedownNotice.cs +++ b/server/StrDss.Service/EmailTemplates/TakedownNotice.cs @@ -18,16 +18,19 @@ public TakedownNotice(IEmailMessageService emailService) public string Comment { get; set; } = ""; public override string GetContent() { - Subject = "Notice of Takedown of Short Term Rental Platform Offer"; + Subject = "Notice of non-compliance with short-term rental business licence requirement"; return (Preview ? GetPreviewContent() : "") + $@" -Dear Short-term Rental Host,

-Short-term rental accommodations in your community must obtain a short-term rental (STR) business licence from the local government in order to operate.

-Short-term rental accommodations are also regulated by the Province of B.C. Under the Short-term Rental Accommodations Act, short-term rental hosts in communities with a short-term rental business licence requirement must include a valid business licence number on any short-term rental listings advertised on an online platform. Short-term rental platforms are required to remove listings that do not meet this requirement if requested by the local government.

+Dear Host,

+Short-term rental accommodations in your community are regulated by your local government.

+The local government has determined that the following short-term rental listing is not in compliance with an applicable local government business licence requirement:

{Url}

Listing ID Number: {ListingId}

-Unless you are able to demonstrate compliance with the business licence requirement, this listing may be removed from the short-term rental platform after 5 days. The local government has 90 days to submit a request to takedown the listing to the platform.

-{Comment}
+Under the provincial Short-Term Rental Accommodations Act and its regulations, the local government may submit a request to the short-term rental platform to cease providing platform services (e.g., remove this listing from the platform) within a period of 5-90 days after the date of delivery of this Notice. Short-term rental platforms are required to comply with the local government’s request within 5 days of receiving the request.

+For more information on this Notice, or local government short-term rental business licences, please contact your local government.

+For more information on the Short-term Rental Accommodations Act, please visit: New rules for short-term rentals - Province of British Columbia (gov.bc.ca).

+{ Comment}

+This email has been automatically generated. Please do not reply to this email. A copy of this Notice has been sent to the short-term rental platform.

"; } } diff --git a/server/StrDss.Service/EmailTemplates/TakedownRequest.cs b/server/StrDss.Service/EmailTemplates/TakedownRequest.cs index b8951ddc..dbd8835a 100644 --- a/server/StrDss.Service/EmailTemplates/TakedownRequest.cs +++ b/server/StrDss.Service/EmailTemplates/TakedownRequest.cs @@ -16,10 +16,10 @@ public override string GetContent() Subject = "Confirmation of Takedown Request"; return (Preview ? GetPreviewContent() : "") + $@" -A takedown request for the following short-term rental listing was submitted to the STR Data Portal and will be delivered to the respective short-term rental platform at 11:50pm PST tonight:

+A takedown request for the following short-term rental listing was submitted to the Province of B.C.’s Short-term Rental Data Portal and will be delivered to the platform at 11:50pm PST tonight:

{Url}

Listing ID Number: {ListingId}

-The platform is required to remove the listing within 8 days of the date it was delivered. If the platform fails to remove the listing, local governments can escalate the matter to the Director of the Provincial STR Compliance and Enforcement Unit at: CEUescalations@gov.bc.ca.

+Under the Short-Term Rental Accommodations Act and its regulations, the platform is required to comply with the request within 5 days from the date of receipt of the request. If the platform fails to comply with the request (e.g., remove the listing), local governments can escalate the matter to the Director of the Provincial STR Compliance and Enforcement Unit at: CEUescalations@gov.bc.ca.

This email has been automatically generated. Please do not reply to this email. "; } diff --git a/server/StrDss.Service/UserService.cs b/server/StrDss.Service/UserService.cs index e78fb561..62a95ab1 100644 --- a/server/StrDss.Service/UserService.cs +++ b/server/StrDss.Service/UserService.cs @@ -61,21 +61,21 @@ public async Task>> CreateAccessRequestAsync(Acc return errors; } - //if (_currentUser.IdentityProviderNm == StrDssIdProviders.BceidBusiness) - //{ - // var (error, account) = await _bceid.GetBceidAccountCachedAsync(_currentUser.UserGuid, "", StrDssIdProviders.BceidBusiness, _currentUser.UserGuid, _currentUser.IdentityProviderNm); - - // if (account == null) - // { - // _logger.LogError($"BCeID call error: {error}"); - // } - - // if (account != null) - // { - // _currentUser.FirstName = account.FirstName; - // _currentUser.LastName = account.LastName; - // } - //} + if (_currentUser.IdentityProviderNm == StrDssIdProviders.BceidBusiness) + { + var (error, account) = await _bceid.GetBceidAccountCachedAsync(_currentUser.UserGuid, "", StrDssIdProviders.BceidBusiness, _currentUser.UserGuid, _currentUser.IdentityProviderNm); + + if (account == null) + { + _logger.LogError($"BCeID call error: {error}"); + } + + if (account != null) + { + _currentUser.FirstName = account.FirstName; + _currentUser.LastName = account.LastName; + } + } if (userDto == null) {