Relative Content

Tag Archive for asp.net-mvcasp.net-identity

ASP.Net 6 Identity Calling Login at Startup Not Home Page

I was quickly setting up a new website using an existing one that I’d build which uses ASP.Net Identity. The existing website loads the home page (/Index.cshtml), then a link on that page allows administrators to log in. The copied website starts with Account/Manage/Login.cshtml even though I have not added any code to call this. I’ve checked the routing and can see nothing to do this. The default UseMVC endpoint shows “{area:exists}/{controller=Home}/{action=Index}/{id?}”. I’ve tried adding to the Web.Config file.
As far as I can make out nothing has changed between the website that I copied and this one and yet the newer website always starts with Login and not the home page.

ASP.NET Core MVC pass a url parameter to the POST

I have a Blazor Server app. It uses the ASP.NET Identity Library which is ASP.NET Core MVC. I am trying to pass a parameter to login so a URL like /identity/account/Register?follow=uniqueId gives me the parameter follow=uniqueId.

MVC pass a url parameter to the POST

I have a Blazor Server app. It uses the ASP.NET Identity Library which is MVC. I am trying to pass a parameter to login so a URL like /identity/account/Register?follow=uniqueId gives me the parameter follow=uniqueId.