public override bool DeleteUser(string username, bool deleteAllRelatedData) { var user = IMem.GetUser8Name(username); user.Frozen = true; IMem.UpdateUser(user); return(true); }
public override bool ValidateUser(string username, string password) { MODEL.User user = IMem.GetUser8Name(username); if (user == null) { return(false); } else { return(user.Password == password); } }
public override MembershipUser GetUser(string username, bool userIsOnline) { MODEL.User user = IMem.GetUser8Name(username); if (user == null) { return(null); } MembershipUser mu = new MembershipUser("memProvider", username, user.ID, user.Email, string.Empty, string.Empty, true, true, user.CreateTime, DateTime.Now, DateTime.Now, DateTime.Now, DateTime.Now); return(mu); }
public override bool ChangePassword(string username, string oldPassword, string newPassword) { var user = IMem.GetUser8Name(username); if (user.Password == oldPassword) { user.Password = newPassword; IMem.UpdateUser(user); return(true); } else { return(false); } }