That post is valid if you are using the old membership provider model CMS 9 or earlier. For Episerver CMS 10+ you should use the new identity model instead. I'll try to make a new blog post about that later.
Here is a nice link to get you started in the right direction with identity
I am able to loginn Now. But the problem is i have done this by using Alloy site. Can i implement the same custom login page in Empty Site ?
In Alloy Site i have implemented, but now i am stuck at some point that is After Sucessfull Login i want to redirect to my own Page, Instead of Start Page. So i have updated the start Page in Manage Web sites in Admin mode. Now i am not able to browse the LOGIN PAGE. IT GIVES ME ERROR.
If you want to do redirect after login, do that in code in controller. If you change start page in admin mode you will likely break the site yes.
It's definitely possible to do the same on an empty site but I would suggest doing it the other way instead. Start with alloy site and remove what you don't need.
Can you please provide me your email id. So that i can send you my sample code. So that we can discuss
I stumbled on this post and hope you can help me. I'm trying to do two things 1 - implement a custom login page and 2- have access to every page require authentication. I've successfully implemented OWIN and a regular MVC application but am struggling with Epi.
I've used the code from this article which included a downloadable zip file.
Here's the code in startup.cs
public void Configuration(IAppBuilder app)
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Login"),
Provider = new CookieAuthenticationProvider
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager<ApplicationUser>, ApplicationUser>(
regenerateIdentity: (manager, user) => manager.GenerateUserIdentityAsync(user))
When I debug, I can see that startup.cs fires.
I have two problems
1) Startup page is shown without requiring authentication
2) Admin pages still use the standard epi login page.
Any ideas of what I'm doing wrong?
Can some one please help me, i am stuck. When i am trying to create a custom login page. Can some one help me on this.
Below is my sample URL , i follow the same steps mentioned inn this URL