This commit is contained in:
@@ -180,23 +180,15 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get subset of translation values for specific translation Id
|
/// Get subset of translation values for specific translation Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
/// <param name="inObj">List of translation key strings</param>
|
/// <param name="inObj">List of translation key strings</param>
|
||||||
/// <returns>A key value array of translation text values</returns>
|
/// <returns>A key value array of translation text values</returns>
|
||||||
[HttpPost("subset/{id}")]
|
[HttpPost("subset/{id}")]
|
||||||
|
[AllowAnonymous]
|
||||||
public async Task<IActionResult> SubSet([FromRoute] long id, [FromBody] List<string> inObj)
|
public async Task<IActionResult> SubSet([FromRoute] long id, [FromBody] List<string> inObj)
|
||||||
{
|
{
|
||||||
if (serverState.IsClosed)
|
if (serverState.IsClosed)
|
||||||
{
|
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||||
//Exception for SuperUser account to handle licensing issues
|
|
||||||
if (UserIdFromContext.Id(HttpContext.Items) != 1)
|
|
||||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
|
||||||
}
|
|
||||||
|
|
||||||
//Instantiate the business object handler
|
|
||||||
|
|
||||||
//Instantiate the business object handler
|
|
||||||
// TranslationBiz biz = TranslationBiz.GetBiz(ct, HttpContext);
|
|
||||||
|
|
||||||
var l = await TranslationBiz.GetSubsetStaticAsync(inObj, id);
|
var l = await TranslationBiz.GetSubsetStaticAsync(inObj, id);
|
||||||
return Ok(ApiOkResponse.Response(l));
|
return Ok(ApiOkResponse.Response(l));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ namespace AyaNova.Biz
|
|||||||
var loginName=Uri.EscapeDataString(dbObject.Login);
|
var loginName=Uri.EscapeDataString(dbObject.Login);
|
||||||
|
|
||||||
//Hello {user_name},\n\nYour online account for service is available to you after you set your password.\nYou can use the following link for the next 48 hours to set your password.\n\nSet your password: {action_link}\n\nIf you did not request an account or password reset, please ignore this email.\n\nThanks,\n{registered_to}"
|
//Hello {user_name},\n\nYour online account for service is available to you after you set your password.\nYou can use the following link for the next 48 hours to set your password.\n\nSet your password: {action_link}\n\nIf you did not request an account or password reset, please ignore this email.\n\nThanks,\n{registered_to}"
|
||||||
MessageBody = MessageBody.Replace("{user_name}", dbObject.Name).Replace("{action_link}", $"{ServerUrl}/home-reset?{ResetCode}&tr={EffectiveTranslationId}&lg={loginName}").Replace("{registered_to}", AyaNova.Core.License.ActiveKey.RegisteredTo);
|
MessageBody = MessageBody.Replace("{user_name}", dbObject.Name).Replace("{action_link}", $"{ServerUrl}/home-reset?rc={ResetCode}&tr={EffectiveTranslationId}&lg={loginName}").Replace("{registered_to}", AyaNova.Core.License.ActiveKey.RegisteredTo);
|
||||||
IMailer m = AyaNova.Util.ServiceProviderProvider.Mailer;
|
IMailer m = AyaNova.Util.ServiceProviderProvider.Mailer;
|
||||||
|
|
||||||
await m.SendEmailAsync(dbObject.UserOptions.EmailAddress, Title, MessageBody, ServerGlobalOpsSettingsCache.Notify);
|
await m.SendEmailAsync(dbObject.UserOptions.EmailAddress, Title, MessageBody, ServerGlobalOpsSettingsCache.Notify);
|
||||||
|
|||||||
Reference in New Issue
Block a user