Releases: aspnetboilerplate/module-zero-forsaken
Releases · aspnetboilerplate/module-zero-forsaken
v1.4.3
v1.4.2
v1.4.0.0
v1.3.1.0
v1.2
v1.1.3.0
v1.1.0.0
- #260 Create Abp.Zero.AspNetCore package.
- #264 Increase EmailConfirmationCode length (REQUIRES NEW MIGRATION)
- #263 #262 Created IUserTokenProvider for AspNet Core.
- #271 #268 Updated Lithuanian and Russian translations
- #266 Saving ClaimValue in ClaimType.
- #256 ChangeAbpTablePrefix should add “AbpUserClaims”.
v1.0.0.0
BREAKING CHANGES
- #253 Moved Login methods from UserManager to AbpLoginManager.
FEATURES
- #255 Introduce Abp.Zero.Owin package.
- #252 Create AbpSignInManager.
- #50 Register IUserTokenProvider.
- #251 Implement IUserTwoFactorStore.
- #250 Implement IUserSecurityStampStore.
- #249 Implement IUserClaimStore.
- #248 Implement IUserPhoneNumberStore.
- #192 Implement IUserLockoutStore.
UPGRADE FOR EXISTING APPLICATIONS
- Should create a
LoginManager
class like that: https://github.com/aspnetboilerplate/module-zero/blob/dev/test/Abp.Zero.SampleApp/Authorization/AppLoginManager.cs - Should use
LoginManager.Login
(or LoginAsync) methods instead ofUserManager.Login
methods. AbpTenantManager<Tenant, Role, User>
changed toAbpTenantManager<Tenant, User>
. See a sample TenantManager: https://github.com/aspnetboilerplate/module-zero/blob/dev/test/Abp.Zero.SampleApp/MultiTenancy/TenantManager.csAbpUserManager<Tenant, Role, User>
changed toAbpUserManager<Role, User>
and changed constructor arguments. See a sample UserManager inherits from AbpUserManager: https://github.com/aspnetboilerplate/module-zero/blob/dev/test/Abp.Zero.SampleApp/Users/UserManager.cs#L14- Changed
AbpUserStore
constructor arguments. See latest sample UserStore: https://github.com/aspnetboilerplate/module-zero/blob/dev/test/Abp.Zero.SampleApp/Users/UserStore.cs AbpFeatureValueStore<Tenant, Role, User>
changed toAbpFeatureValueStore<Tenant, User>
. See a sample FeatureValueStore: https://github.com/aspnetboilerplate/module-zero/blob/dev/test/Abp.Zero.SampleApp/Features/FeatureValueStore.csAbpUserManager<Tenant, Role, User>.AbpLoginResult
changed toAbpLoginResult<Tenant, User>
.- Deleted
Permission.IsGrantedByDefault
. - Also see ABP v1.0 changes for other breaking changes: https://github.com/aspnetboilerplate/aspnetboilerplate/releases/tag/v1.0.0.0
New Migration
After fixing breaking changes, you should add a new migration (for example, named "Upgrade_To_Abp_1_0") since there are some new entity and properties.
You may want to change migration code a bit to provide default values to new properties. We suggest you to change it for AccessFailedCount
, IsLockoutEnabled
and IsTwoFactorEnabled
fields like below:
AddColumn("dbo.AbpUsers", "AccessFailedCount", c => c.Int(nullable: false, defaultValue: 0));
AddColumn("dbo.AbpUsers", "IsLockoutEnabled", c => c.Boolean(nullable: false, defaultValue: true));
AddColumn("dbo.AbpUsers", "IsTwoFactorEnabled", c => c.Boolean(nullable: false, defaultValue: true));
And finally, you should run UPDATE AbpUsers SET SecurityStamp = NEWID()
SQL command to update existing users. You can manually run this command or you can add this to end of your migration code:
Sql("UPDATE AbpUsers SET SecurityStamp = NEWID()");
You may want to check this: All changes we have done while upgrading startup template: aspnetboilerplate/module-zero-template@c0d7f04