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

Activities of "sbenfares"

Hi,

In my app, i'm using SessionCache LoginInformation ViewModel in my layout view to display the user.surname.

I have a form for updating the surname if needed, how can i update the SessionCache LoginInformation after posting my form ?

Because now it keeps the cached value, and it's different from my database value.

Thanks

Hi,

I would like to center the div/canvas displayed in the modal when changing the profile picture in the ChangeProfilePicture Modal.

I can't figure how to do this, what element should i modify in Jcrop or in the modal...

Thanks!

PS : You can see the capture attached

Capture.PNG

I would like to get FirstName and LastName of my users in my chstml views.

With asp.net identity we can have @User.identity.Name but only the name is exposed.

What is the cleanest method to get User.FirstName & Lastname (& other properties) in ANZ ?

Question

Hi,

I need to handle 2 (or more) types of Users in my application (Example Teacher & Students) Each user wil have common properties (defined in User Table) and have specific fields.

What is the best approach for integrate this with ANZ ?

PS : In my previous application i used Asp.net Identity 2.0 table AspNetUser and Created 2 specific tables : Student & Teacher. On AspNetUser i created a nullable Foreign Key to Student and Teacher table. I followed this recommandation : https://stackoverflow.com/questions/27059017/creating-inheritance-users-from-base-asp-net-identity-user

Then to retrieve Student data i used User.Student.Name

Is that a good practice for you ? Should i use the same method for ANZ and AbpUsers Table ? How can i add StudentId and TeacherId in AbpSession in ANZ ?

Thanks !

Hi there,

I'm new to ANZ, i've created my first project with MultyTenancy disabled because i don't need it.

If i understand correctly, with MultiTenancy off i still have a default tenantam i right ?

Is it possible to login as host with MultiTenancy off ? If there is a default tenant can i manage it with an host account ?

I tried to log with host user with MT off (using tenancyName empty on login as explained here : [https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=11035])) but i always have a InvalidUserNameOrEmailAddress error.

Thanks for your help.

Hello,

I’m trying to add 2 areas to my project, i would like to properly redirect users on login. Each user have a specific role, depending on his role he will be redirected to the good area.

What is your advice to handle this properly ?

I’m modifying AccountController and HomeController with a GetAppHomeUrl method which use a User.IsInRole verification.

My problem is with the NormalizeReturnUrl function and the UserManager.UserIsInRole verification which is not working. The IsInRole always return false for my users, but return true for the default admin user.

My users are created in the SeedHelper and roles are set with the context : __context.UserRoles.Add(new UserRole(tenantId, user.Id, role.Id));

When i create the users in SeedHelper, should i use UserManager.AddToRoleAsync to make IsInRoleAsync work ? If yes, should i inject UserManager in the SeedHelper ?

Thanks

PS : Multytenancy disabled.

Showing 21 to 26 of 26 entries