Author: toshok
Date: 2006-03-23 13:09:36 -0500 (Thu, 23 Mar 2006)
New Revision: 58372
Modified:
trunk/mcs/class/System.Web/System.Web.Security/ChangeLog
trunk/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs
Log:
2006-03-23 Chris Toshok <[EMAIL PROTECTED]>
* DefaultAuthenticationModule.cs (OnDefaultAuthentication): always
set Thread.CurrentPrincipal, not just if we set it to the
GenericPrincipal.
Modified: trunk/mcs/class/System.Web/System.Web.Security/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Security/ChangeLog 2006-03-23
17:53:29 UTC (rev 58371)
+++ trunk/mcs/class/System.Web/System.Web.Security/ChangeLog 2006-03-23
18:09:36 UTC (rev 58372)
@@ -1,3 +1,9 @@
+2006-03-23 Chris Toshok <[EMAIL PROTECTED]>
+
+ * DefaultAuthenticationModule.cs (OnDefaultAuthentication): always
+ set Thread.CurrentPrincipal, not just if we set it to the
+ GenericPrincipal.
+
2006-03-22 Chris Toshok <[EMAIL PROTECTED]>
* RoleManagerModule.cs: implement using info in Shackow's book.
Modified:
trunk/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs
2006-03-23 17:53:29 UTC (rev 58371)
+++
trunk/mcs/class/System.Web/System.Web.Security/DefaultAuthenticationModule.cs
2006-03-23 18:09:36 UTC (rev 58372)
@@ -65,10 +65,10 @@
if (context.User == null && Authenticate != null)
Authenticate (this, new
DefaultAuthenticationEventArgs (context));
- if (context.User == null) {
+ if (context.User == null)
context.User = new GenericPrincipal
(defaultIdentity, new string [0]);
- Thread.CurrentPrincipal = context.User;
- }
+
+ Thread.CurrentPrincipal = context.User;
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches