Restyle login, change password works

This commit is contained in:
2012-12-22 10:48:34 -05:00
parent f129142dab
commit c1944f6262
54 changed files with 327 additions and 255 deletions
+10
View File
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Security;
namespace MileageTraker.Web.Models
{
@@ -37,5 +38,14 @@ namespace MileageTraker.Web.Models
public virtual DateTime? PasswordVerificationTokenExpirationDate { get; set; }
public virtual ICollection<Role> Roles { get; set; }
public MembershipUser CloneToMembershipUser(string providerName)
{
return new MembershipUser(providerName, Username, UserId,
Email, null, null,
IsApproved, IsLockedOut, CreateDate.Value,
LastLoginDate.Value, LastActivityDate.Value,
LastPasswordChangedDate.Value, LastLockoutDate.Value);
}
}
}