question

Alfonso-1498 avatar image
0 Votes"
Alfonso-1498 asked tinywang-msft answered

AspNetCore.Identity manage account header text change

121074-image.png

Hi,

I created login on my app using scaffold-identity.
After the forder structure was added, I was able to modify all but the header of the page.

121075-image.png

I opened up each cshtml file did not find the header text Change your account settings in any of them.

Can someone help me to locate the header?

Thank you.

dotnet-aspnet-core-mvcmicrosoft-identity-manager
image.png (69.7 KiB)
image.png (24.6 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Alfonso-1498 , basically, the navigate header is written in the shared folder _Layout.cshtml, but you said you've checked all files. Therefore could you pls offer the tutorial you followed as it may help me to build the same project in my side? By the way, you can also use the query tool in visual studio to search for the content. Press ctrl+f and click the drop down to choose the Find in Files to search for Change your account settings.
121070-image.png


0 Votes 0 ·
image.png (6.9 KiB)

@tinywang-msft
While I was replicating what I did to add more detail, I remembered I did not select all options but only things I needed.
So I did not have _Layout.cshtml file under Identity.Pages.Account.Manage, and I guess the header was coming from the default location I cannot see.

121263-image.png

I created a new test project and selected Account\Manage\Layout, then I copied the _Layout.cshtml to my original project and now I can edit the header.

121188-image.png

Problem solved. Thank you!


1 Vote 1 ·
image.png (17.5 KiB)
image.png (6.5 KiB)

@tinywang-msft thank you for your reply!
I will add more detail about how I built Identity pages in the next reply.

Regarding using the query tool, I tried both Change your account settings and partial account settings but found 0 result.

121204-image.png


0 Votes 0 ·
image.png (8.1 KiB)

1 Answer

tinywang-msft avatar image
0 Votes"
tinywang-msft answered

Hi @Alfonso-1498 , pls allow me to sum up here to end this case.

My guess is the account header is defined in the _Layout page, but per the test by Op, he can't find a layout fine in his project as he didn't select all needed options when integrate identity module.

So the next step or the solution is adding the missing file by copying them from a newly created test project. Then can modify that html snippet.

Thanks for Alfonso's effort and reply : )

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.