Starts in:
2 DAYS
10 HRS
11 MIN
47 SEC
Starts in:
2 D
10 H
11 M
47 S
Open Closed

Not getting current logged in user id using abp core with blazor #734


User avatar
0
safi created

Hi,

I am using abp core with blazor and using EF for db. I am trying to insert list for current logged in user but data insertion is working except logged in user id so for this I have used CurrentUser.id as well but no luck.

So can you please suggest me what I can do for this or is this a bug. Please see this link for refrence [https://prnt.sc/wb7cub].

Thanks,


7 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you share your code?

  • User Avatar
    0
    safi created

    Hi Liangsiwei

    Thanks for your early response and I am using below code to get current logged in user id [https://docs.abp.io/en/abp/latest/CurrentUser]

    Thanks,

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Sorry,

    I need more infomation. Can I check it remotely? shiwei.liang@volosoft.com

  • User Avatar
    0
    safi created

    Hi Lianghsiwei

    Yes we can do this.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Please send an email to me. shiwei.liang@volosoft.com

  • User Avatar
    0
    safi created

    just sent email for the same.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Try AbpClaimTypes.UserId = ClaimTypes.NameIdentifier;

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06