Base solution for your next web application
Open Closed

Email address instead of username on chat #8665


User avatar
0
josejunior created

Hello Asp.Net Zero,

I would like to know where (files) to customize the chat ui, in order to display the user EmailAddress instead of UserName! Is this possible?

TIA

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    • What is your product version?
    • What is your product type (Angular or MVC)?
    • What is product framework type (.net framework or .net core)?
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    josejunior created

    Sorry maliming!

    I have the latest:

    .net core v8.3.1 MVC

    Thank you!!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    On server side, you need to modify GetUserChatFriendsWithSettings method of https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/Chat/ChatAppService.cs.

    On client side, you need to modify _ChatBar.js and _ChatBar.cshtml

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    josejunior created

    Thank you ismcagdas and maliming!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)