Make sure user is logged back in when he enters correct password

This commit is contained in:
starfighter83
2011-01-07 14:46:54 -01:00
parent 36e0b28e70
commit 2177686e43

View File

@@ -36,9 +36,19 @@ namespace umbraco.presentation.webservices
[WebMethod]
public bool ValidateUser(string username, string password)
{
return System.Web.Security.Membership.Providers[UmbracoSettings.DefaultBackofficeProvider].ValidateUser(
username, password);
if (System.Web.Security.Membership.Providers[UmbracoSettings.DefaultBackofficeProvider].ValidateUser(
username, password))
{
BusinessLogic.User u = new BusinessLogic.User(username);
BasePage.doLogin(u);
return true;
}
else
{
return false;
}
}
/// <summary>