removes null check for LoginName, since it gets set to the name passed in if it is empty

This commit is contained in:
Shannon
2014-02-17 12:09:27 +11:00
parent 18121e8726
commit 697f93c3ce

View File

@@ -215,7 +215,6 @@ namespace umbraco.cms.businesslogic.member
{
if (mbt == null) throw new ArgumentNullException("mbt");
var loginName = (string.IsNullOrEmpty(LoginName) == false) ? LoginName : Name;
Mandate.ParameterNotNullOrEmpty(LoginName, "LoginName");
//NOTE: This check is ONLY for backwards compatibility, this check shouldn't really be here it is up to the Membership provider
// logic to deal with this but it was here before so we can't really change that.