Authentication and Authorization

Topics: Core
Mar 15, 2013 at 11:39 AM
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.
Mar 15, 2013 at 4:41 PM
Why are you creating your own login for instead of using the form that comes with Orchard.Users?
Mar 16, 2013 at 5:39 AM
Plz let me know , how to set a "Home page" for anonymous users ?
Mar 16, 2013 at 7: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.