user doesn't need to be not approved for invite

This commit is contained in:
Shannon
2017-06-06 01:29:01 +02:00
parent 7f03a97a78
commit 5a5bdb6328

View File

@@ -503,9 +503,7 @@ namespace Umbraco.Core.Services
if (found.Length == 0) return null;
var user = found[0];
//they must not be approved for an invite to work
if (user.IsApproved) return null;
//they should have never logged in for an invite to work
if (user.LastLoginDate != default(DateTime)) return null;