+2006-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * Login.cs: fix problem with the login control and master pages.
+ Patch by Marek Habersack that fixes bug #78219.
+
2006-09-07 Igor Zelmanovich <igorz@mainsoft.com>
* TreeView.cs: fixed: populating nodes.
OnAuthenticate (aea);
if (aea.Authenticated) {
+ FormsAuthentication.SetAuthCookie (UserName, RememberMeSet);
+
string url = DestinationPageUrl;
- FormsAuthentication.SetAuthCookie (UserName, RememberMeSet);
+ if (url.Length == 0 && Page.Request.UrlReferrer != null)
+ url = Page.Request.UrlReferrer.ToString();
+ if (url.Length == 0 && FormsAuthentication.DefaultUrl != null)
+ url = FormsAuthentication.DefaultUrl;
if (url.Length == 0) {
Redirect (FormsAuthentication.LoginUrl);
} else {
{
if ((Page == null) || (Page.Request == null))
return false;
- string url = Page.Request.Url.AbsolutePath;
string defaultLogin = FormsAuthentication.LoginUrl;
+ if (defaultLogin == null)
+ return false;
+ string url = Page.Request.Url.AbsolutePath;
return (String.Compare (defaultLogin, 0, url, url.Length - defaultLogin.Length, defaultLogin.Length,
true, CultureInfo.InvariantCulture) == 0);
}