Hello, I have blazor server side app. I have a Page where Im using videoPlayRepository -> IRepository<VideoPlay, Guid> generated by your tool : suite
Im creating a record like this:
await _videoPlayRepository.InsertAsync(new VideoPlay() {.... }, true );
sometimes it saves data sometime not. I have records in db without CreatorId. On this Page Im using: @inject ICurrentUser CurrentUser Sometime the CurrentUser is null sometime is ok.
Hello guys. I have a question. Is it posible to load the profile after custom login with: await ProfileAppService.GetAsync(); and then to update it with ProfileAppService.UpdateAsync(...
When I try to do that I receive an error:
Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown.
Here is a part of my code:
await SignInManager.SignInAsync(user, isPersistent: false);
await IdentityServerEvents.RaiseAsync(new UserLoginSuccessEvent(user.UserName, user.Id.ToString(), user.UserName));
then:
var profile = await ProfileAppService.GetAsync(); (this is the exception place)