public override bool DeleteUser(string username, bool deleteAllRelatedData) { var user = IMem.GetUser8Name(username); user.Frozen = true; IMem.UpdateUser(user); return(true); }
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); } }