internal void RecordUserLoginSuccess(User user) { //throw new NotImplementedException(); }
internal void UpdateUser(User user) { userAccessor.Update(user); }
internal void RecordUserLoginFailure(User user) { //throw new NotImplementedException(); }
internal void RecordUserActivity(User dbUser) { //throw new NotImplementedException(); }
internal void CreateUser(User user) { userAccessor.Insert(user); }
internal void CreateUser(string email, string name, string plainTextPassword) { var salt = GenerateRandomBase64Salt(); var user = new User { Blocked = false, CreatedAt = DateTime.Now, Email = email, Name = name, Password = EncodePassword(plainTextPassword, salt), Salt = salt }; CreateUser(user); }
internal MembershipUser ConvertUserToMembershipUser(User user, string providerName) { return user == null ? null : new MembershipUser(providerName, user.Name, user.Id, "", "", "", true, user.Blocked, user.CreatedAt, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now); }