Hi,
The account layout is defined in the Themes/LeptonX/Layouts/Account folder and you can override it by creating the file (Default.cshtml) with the same name and under the same folder. There is a partial view, its name is Footer.cshtml. You can override it by following the same way.
You can learn here how to change the account layout of the login page.
You can refer to this question to change the logo.
ABP uses abp.message.error
to show errors and sweetalert2
is used in its infrastructure. So I think you can do this with Sweatalert2's configurations. For example:
$(function () {
abp.libs.sweetAlert.config.error.footer = "<button type='button' id='Copy Log' class='swal2-cancel swal2-styled'>Download Log</button>"
abp.libs.sweetAlert.config.error.didOpen = () => {
var errorDetails = Swal.getHtmlContainer();
console.log(errorDetails);
}
});
Note: As far as I know, sweetalert2
allows you to change the entire error(or other default templates) template as well.
Result:
Note: If you want to see the detail
and stack trace
of the error in modal like me, you can do this as in the code below:
Configure< AbpExceptionHandlingOptions >(options =>
{
options.SendExceptionsDetailsToClients = true;
options.SendStackTraceToClients = true;
});
For more information:
It is normal that you cannot use TimeOnly
because MyProjectName.DomainShared
targets netstandard2.0
. But you can do a similar thing by adding an attribute like the code below:
user.AddOrUpdateProperty<DateTime>(
"OpenAt",
options =>
{
options.Attributes.Add(new DataTypeAttribute(DataType.Time));
}
);
Result
Search the code below in your project.
options.Languages.Add(new LanguageInfo("en", "en", "English)
In the files found, you can change the code similar to the code below and use it according to you.
options.Languages.Add(new LanguageInfo("en", "en", "English", flagIcon: "gb"));
Finally, you may need to manually update the AbpLanguages
table in your database, or if you can delete your database, you can delete it and run DbMigrator
project again.
Hello, can you try again now?
Question 1: Without selecting a tenant I could login to the system but when I select the tenant I cannot login to the system, what did I do wrong?
See: https://support.abp.io/QA/Questions/1360/Cannot-create-a-new-tenant-after-migrating-to-43X#answer-f0f20382-2798-a9bd-51ec-39fc92fb57fe
Here is my second question. When we try to register as new user, can we cancel the event of sending an e-mail to the relevant person? If yes, how will it be?
ABP templates do not send e-mails to newly registered people by default. You must have changed a setting before for this. Please check the settings I have indicated in the screenshot below.
When I have a problem with the hi@developer.dev, I tried to register as new user by swithing to Developer tenant. This time I got an smtp error.
If you want the mail never to be sent but only written to the log for a specific environment, you need to follow the code, below:
Add the following code to the ConfigureServices
method of MyProjectNameDomainModule
in MyProjectName.Domain
.
#if DEBUG
context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
#endif
First of all, we need to select Identity from the administration items.
Can you try the code below?
administration.Items.Single(x => x.Name == IdentityMenuNames.GroupName).TryRemoveMenuItem(IdentityMenuNames.OrganizationUnits);
Hello, unfortunately, the source code download feature is not active with the Team/Trial license. So it is normal that you cannot download the source code with the Team/Trial license.
As @liangshiwei said, I think there is a misunderstanding.
Under normal circumstances, you shouldn't be able to download the source code of any version, but you said that you downloaded versions before 5.3.4
, so I'm opening an internal issue to do detailed research on the subject.
Hello,
For this, I think it would be sufficient to set the SlidingExpiration
of a GlobalCacheEntryOptios(DistributedCacheEntryOptions)
in AbpDistributedCacheOptions
.
Related document: https://docs.abp.io/en/abp/5.3/Caching#available-options
Example code from BasketService
on eShopOnAbp
: https://github.com/abpframework/eShopOnAbp/blob/3d9dd741c9b9884e97b7038d731242d5fe4908d4/services/basket/src/EShopOnAbp.BasketService/BasketServiceModule.cs#L179-L196
I don't quite understand why you need the same configuration on the UI side? If you think I have misunderstood your question, please feel free to give me more information. Have a nice day.
Hello,
This process is generally explained in the relevant module's document (for example https://docs.abp.io/en/commercial/latest/modules/chat#how-to-install). However, there are some general steps after installation.
It is necessary to do these general steps, but we do not have a document on this subject for now. As a result, I'm opening an internal issue on the subject.