Hi,
You can implement a simple news system.
For example, create a table News
:
Use the layout hook system to create a NewsComponent
to display the news.
PS: News systems can get very complex based on your use case. you can add type for news(release, information etc...) and separate display logic for each type
Hi,
You can try to override the SendPasswordResetCodeAsync
method to handle the exception.
For example:
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IAccountAppService))]
public class MyAccountAppService: AccountAppService
{
public MyAccountAppService(
IdentityUserManager userManager,
IAccountEmailer accountEmailer,
IAccountPhoneService phoneService,
IIdentityRoleRepository roleRepository,
IdentitySecurityLogManager identitySecurityLogManager,
IBlobContainer<AccountProfilePictureContainer> accountProfilePictureContainer,
ISettingManager settingManager,
IOptions<IdentityOptions> identityOptions,
IIdentitySecurityLogRepository securityLogRepository) : base(userManager, accountEmailer, phoneService, roleRepository, identitySecurityLogManager, accountProfilePictureContainer, settingManager, identityOptions, securityLogRepository)
{
}
public override async Task SendPasswordResetCodeAsync(SendPasswordResetCodeDto input)
{
try
{
var user = await GetUserByEmail(input.Email);
var resetToken = await UserManager.GeneratePasswordResetTokenAsync(user);
await AccountEmailer.SendPasswordResetLinkAsync(user, resetToken, input.AppName, input.ReturnUrl, input.ReturnUrlHash);
}
catch (Exception e)
{
throw new UserFriendlyException("custom message");
}
}
}
Hi,
Yes, the way is to override the TokenController
.
but I couldn't find the controller in Volo.Abp.OpenIddict.Controllers namespace.
Are you using the OpenIddict
? you need to custom it in the AuthServer
(if exists) or HttpApi.Host
project
Hi,
You can try :
using (CurrentTenant.Change(null))
{
return L[name];
}
Hi,
ABP checks the license on development. when you publish the application or run it on Production
. ABP will not check the license.
You can see the details: https://support.abp.io/QA/Questions/69/#answer-d8bebebb-b714-3c1e-7fcb-39f437bc8ba3
Hi,
I will check it.
Could you share your abp.io account (username&password)with me? shiwei.liang@volosoft.com
Hi,
Can you share the ** full steps** to reproduce? thanks.