Author: krasnov
Date: 2007-01-16 12:44:01 -0500 (Tue, 16 Jan 2007)
New Revision: 71157

Modified:
   trunk/mcs/class/System.Web/System.Web.Security/ChangeLog
   trunk/mcs/class/System.Web/System.Web.Security/RoleManagerModule.cs
   trunk/mcs/class/System.Web/System.Web.Security/Roles.cs
Log:
* RoleManagerModule.cs: fixed OnPostAuthenticateRequest, CacheRolesInCookie not 
supported yet
* Roles.cs: fixed DeleteCookie, CacheRolesInCookie not supported yet


Modified: trunk/mcs/class/System.Web/System.Web.Security/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Security/ChangeLog    2007-01-16 
17:22:15 UTC (rev 71156)
+++ trunk/mcs/class/System.Web/System.Web.Security/ChangeLog    2007-01-16 
17:44:01 UTC (rev 71157)
@@ -1,3 +1,9 @@
+2007-01-16 Vladimir Krasnov <[EMAIL PROTECTED]>
+
+       * RoleManagerModule.cs: fixed OnPostAuthenticateRequest,
+       CacheRolesInCookie not supported yet
+       * Roles.cs: fixed DeleteCookie, CacheRolesInCookie not supported yet
+
 2007-01-11 Adar Wesley <[EMAIL PROTECTED]>
 
        * MembershipProvider.cs: fixed EncryptPassword to use password buffer 
length

Modified: trunk/mcs/class/System.Web/System.Web.Security/RoleManagerModule.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Security/RoleManagerModule.cs 
2007-01-16 17:22:15 UTC (rev 71156)
+++ trunk/mcs/class/System.Web/System.Web.Security/RoleManagerModule.cs 
2007-01-16 17:44:01 UTC (rev 71157)
@@ -58,6 +58,10 @@
                        if (!config.Enabled)
                                return;
 
+                       /* not supported yet */
+                       if (config.CacheRolesInCookie)
+                               throw new NotSupportedException ("Caching roles 
in cookie is not supported");
+
                        /* allow the user to populate the Role */
                        if (GetRoles != null) {
                                RoleManagerEventArgs role_args = new 
RoleManagerEventArgs (app.Context);

Modified: trunk/mcs/class/System.Web/System.Web.Security/Roles.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Security/Roles.cs     2007-01-16 
17:22:15 UTC (rev 71156)
+++ trunk/mcs/class/System.Web/System.Web.Security/Roles.cs     2007-01-16 
17:44:01 UTC (rev 71157)
@@ -119,7 +119,8 @@
                [MonoTODO ("Not implemented")]
                public static void DeleteCookie ()
                {
-                       throw new NotImplementedException ();
+                       if (CacheRolesInCookie)
+                               throw new NotSupportedException ("Caching roles 
in cookie is not supported");
                }
                
                public static bool DeleteRole (string rolename)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to