This project is read-only.

For windows Authentication, how about comment the OnActionExecuting code in AccountController

Topics: Administration, Customizing Orchard
Oct 17, 2012 at 3:28 AM

Good morining.

I encount a windows authentication problem. I use moov2's "AlexZh.WindowsAuthentication", it's really great. but when click "Logout" it will cause an exception. I have found on the method "OnActionExecuting" in Orchard.User.AccountController cause the exception. I want to comment the code below:
           if (filterContext.HttpContext.User.Identity is WindowsIdentity) {
                throw new InvalidOperationException(T("Windows authentication is not supported.").ToString());

In other word I want to comment the "OnActionExecuting". it will be OK? or it will cause something other exception?

Oct 17, 2012 at 6:06 PM

I don't think this code is necessary. Does commenting it fixes all your issues ? Could you have the author of the module comment on this change ?

Oct 17, 2012 at 6:06 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.