Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "maliming"

hi rvanwoezik I saw that you are using OwnsOne why you don’t use a one-to-many relationship. Because you have split the table [Table("PhysicalAddresses")]

Can you create a simple demo that reproduces the problem.

hi joe704la

If you want to implement this feature as soon as possible, You can override Abp.SetNewEmailConfirmationCode by yourself. Customize EmailConfirmationCode and add a timestamp (note that the length should not exceed 328)

Then perform custom validation in AccountAppService.ActivateEmail.

I provide an implementation, but you can customize the way you like.

The DataProtectorTokenProvider uses the TokenLifespan property of the DataProtectionTokenProviderOptions by default to validate the validity period. The default is 1 day.

Of course, DataProtectionTokenProviderOptions can be customized, please refer to:[https://github.com/aspnet/Docs/issues/5436])

//Generate email code
var user = await _userManager.FindByIdAsync("3");
var emailCode = await _dataProtectorTokenProvider.GenerateAsync("ActivateEmail", _userManager, user);
//emailCode like CfDJ8BgfrGEzWk9Chdg/C6u19QLFGUhjSSZs12yz/guCxJDzbNUe2vBxSK8OK9gyS+7wDHAt3MYV1tMKEWA0ysONLPBJfyC9qLFbNGxi3S32c6I3vsmCRMOFmTSPoISBIPAHaNgt3lLd76mxxw9Gu4dWraNdhZgOF3GcbdH5namG2ld4YBULmFjwB9WkHMqVXS/V9A==


// send email

//Validate
if (await _dataProtectorTokenProvider.ValidateAsync("ActivateEmail", emailCode, _userManager, user))
{
	//Activate success!
}
else
{
	//Activate fail.
}

asp net identity [https://www.asp.net/identity]) has this feature(Zero also integrates asp net identity), but currently there is no such feature in zero.

It looks like there is no problem. You can see what the generated SQL statement is, isn't there no data in the database? Can you share more code?

I visited this site. In the chrome console web panel you see that the web page loading time is slow because the js file download is slow. Scripts.js Vendor.js Main.js

You can consider compacting static resources such as js and css. Of course, server bandwidth is also a very important factor.

There is currently no validation for the validity period, simply comparing EmailConfirmationCode.

But asp net identity has its own token expiration time validation.

So we can consider increasing the expiration date of the confirmation phone and email, changing the password and so on.

The best way to modify a database in EntityFrameworkCore is via migration. The abp zero upgrade will not affect your previous database migration. Migration records are automatically merged. :)

AbpWebApi and DynamicApiControllerBuilder and MapHttpAttributeRoutes only exist in the net framework mvc. if you are using the net core there are relevant documents:[http://aspnetboilerplate.com/Pages/Documents/AspNet-Core#controllers])

But MapHttpAttributeRoutes does not achieve your purpose. As i know currently ABP's dynamic API has not been able to customize routes.

If you click [Download Test Project], the test project will be downloaded. But if your ProjectName does not contain a Test string, the download will automatically add a Test string to your project name.

As far as I know, dynamic api has no custom routing features for the time being. If you want to use url to pass parameters, you can change the parameters of the application layer method from object to multiple simple parameters.

Such as:

Task Create(CreateInput input); Task Create(string name, int age);

Showing 2991 to 3000 of 3000 entries