Authentication and Authorization

Topics: Core
Mar 15, 2013 at 12:39 PM
I have created login page using OForm. How can i validate the user ? and plz let me know how can i implement authentication and authorization.

If anonymous user i should show only Home page and authorized users can access other pages. Please help me to fix this.
Developer
Mar 15, 2013 at 5:41 PM
Why are you creating your own login for instead of using the form that comes with Orchard.Users?
Mar 16, 2013 at 6:39 AM
Plz let me know , how to set a "Home page" for anonymous users ?
Developer
Mar 16, 2013 at 8:03 PM
You can set any content item to be the home page (provided that it has the AutoroutePart) attached.
I don't think you can set a different homepage for unauthenticated users than the one for authenticated users unless you implement such functionality in your own module. You can set the login url via web.config, so that if a user tries to access a protected area, he gets redirected to the specified url.