Hi, I am trying to add a login page and allow members to access specific pages in my umbraco 8 site. I am trying to follow Paul Seal's tutorial (https://codeshare.co.uk/blog/tutorial-how-to-create-member-login-and-logout-form-in-umbraco-mvc/). My very basic question: Where (and how) do i create the Login Model and member controller?
I would hugely appreciate simple steps to achieve this
I'm not using Umbraco Cloud, and have installed both using Visual Studio, and separately using Visual Studio Code (in the hope that the latter would prove simpler).
Then as long as you add a folder and put the code in files in there it will work.
I'd usually create a Models folder and a Controllers folder. Build and compile and it should pick up the code no problem? I tend to prefer Visual Studio just because it's what I've always used for .Net.
When you set up the solution if you select MVC or similar it will create those folders. If you have selected blank / empty (which is recommended) then you just create them.
Most people usually create a separate project for their code and keep Umbraco in it's own but to get started this way is fine.
Member login
Hi, I am trying to add a login page and allow members to access specific pages in my umbraco 8 site. I am trying to follow Paul Seal's tutorial (https://codeshare.co.uk/blog/tutorial-how-to-create-member-login-and-logout-form-in-umbraco-mvc/). My very basic question: Where (and how) do i create the Login Model and member controller?
I would hugely appreciate simple steps to achieve this
Thanks
Rich
Hi Rich,
How have you installed Umbraco? Are you using Visual Studio / Code / Cloud?
Steve
Hey Steve thanks for getting back to me.
I'm not using Umbraco Cloud, and have installed both using Visual Studio, and separately using Visual Studio Code (in the hope that the latter would prove simpler).
Then as long as you add a folder and put the code in files in there it will work.
I'd usually create a Models folder and a Controllers folder. Build and compile and it should pick up the code no problem? I tend to prefer Visual Studio just because it's what I've always used for .Net.
What problem are you having?
OK great. I was reluctant to just create folders as the stuff i'd seen online suggested they were there already. Will try this. Many thanks again.
When you set up the solution if you select MVC or similar it will create those folders. If you have selected blank / empty (which is recommended) then you just create them.
Most people usually create a separate project for their code and keep Umbraco in it's own but to get started this way is fine.
is working on a reply...