Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Consent feature for DNN #2683

Merged
merged 17 commits into from
Apr 12, 2019
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion DNN Platform/Library/Data/DataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2384,6 +2384,11 @@ public virtual void RemoveUser(int userId, int portalId)
ExecuteNonQuery("RemoveUser", userId, GetNull(portalId));
}

public virtual void ResetTermsAgreement(int portalId)
{
ExecuteNonQuery("ResetTermsAgreement", portalId);
}

public virtual void RestoreUser(int userId, int portalId)
{
ExecuteNonQuery("RestoreUser", userId, GetNull(portalId));
Expand All @@ -2407,7 +2412,7 @@ public virtual void UpdateUser(int userId, int portalID, string firstName, strin
isApproved,
refreshRoles,
lastIpAddress,
passwordResetToken,
GetNull(passwordResetToken),
mitchelsellers marked this conversation as resolved.
Show resolved Hide resolved
GetNull(passwordResetExpiration),
isDeleted,
lastModifiedByUserID);
Expand All @@ -2418,6 +2423,11 @@ public virtual void UpdateUserLastIpAddress(int userId, string lastIpAddress)
ExecuteNonQuery("UpdateUserLastIpAddress", userId, lastIpAddress);
}

public virtual void UserAgreedToTerms(int portalId, int userId)
{
ExecuteNonQuery("UserAgreedToTerms", portalId, userId);
}

#endregion

#region UserRole Methods
Expand Down Expand Up @@ -2565,6 +2575,11 @@ public virtual IDataReader GetPropertyDefinitionsByPortal(int portalId)
return ExecuteReader("GetPropertyDefinitionsByPortal", GetNull(portalId));
}

public virtual void DeleteUserProfile(int portalId, int userId)
{
ExecuteNonQuery("DeleteUserProfile", portalId, userId);
}

public virtual IDataReader GetUserProfile(int userId)
{
return ExecuteReader("GetUserProfile", userId);
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/Library/DotNetNuke.Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,7 @@
<Compile Include="Services\UserProfile\UserProfilePicHandler.cs" />
<Compile Include="Services\UserRequest\IUserRequestIPAddressController.cs" />
<Compile Include="Services\UserRequest\UserRequestIPAddressController.cs" />
<Compile Include="Services\Users\PurgeDeletedUsers.cs" />
<Compile Include="Services\Zip\SharpZipLibRedirect.cs" />
<Compile Include="UI\Containers\ActionBase.cs">
<SubType>ASPXCodeBehind</SubType>
Expand Down
Loading