forked from ventrian/News-Articles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ventrian#19 Replace DNN Captcha optionally with reCaptcha or Honeypot
- Loading branch information
Showing
20 changed files
with
471 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
Installs/NewsArticles.00.09.11/ | ||
Installs/NewsArticles.00.10.00/ | ||
InstallPackager/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
' | ||
' News Articles for DotNetNuke - http://www.dotnetnuke.com | ||
' Copyright (c) 2002-2007 | ||
' by Ventrian ( [email protected] ) ( http://www.ventrian.com ) | ||
' | ||
|
||
Imports System | ||
Imports System.Configuration | ||
Imports System.Data | ||
|
||
Imports DotNetNuke.Common.Utilities | ||
|
||
Namespace Ventrian.NewsArticles | ||
|
||
Public Enum CaptchaType | ||
|
||
None | ||
DnnCore | ||
ReCaptcha | ||
Honeypot | ||
|
||
End Enum | ||
|
||
End Namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Honeypot.ascx.vb" Inherits="Ventrian.NewsArticles.Controls.Honeypot" %> | ||
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %> | ||
<div style="display: none"> | ||
<dnn:Label ID="ConfirmEmailLabel" ControlName="txtConfirmEmail" runat="server" /> | ||
<asp:TextBox runat="server" ID="txtConfirmEmail"></asp:TextBox> | ||
<asp:CustomValidator runat="server" CssClass="dnnFormMessage dnnFormError" ControlToValidate="txtConfirmEmail" ID="RecaptchaValidator" OnServerValidate="HoneypotValidator_OnServerValidate"/> | ||
</div> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Imports System.IO | ||
Imports System.Net | ||
Imports System.Web.Script.Serialization | ||
Imports DotNetNuke.Common.Utilities | ||
|
||
Namespace Ventrian.NewsArticles.Controls | ||
Public Class Honeypot | ||
Inherits System.Web.UI.UserControl | ||
|
||
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load | ||
|
||
End Sub | ||
|
||
Protected Sub HoneypotValidator_OnServerValidate(source As Object, args As ServerValidateEventArgs) | ||
args.IsValid = IsValid() | ||
End Sub | ||
|
||
Public Function IsValid() As Boolean | ||
Return txtConfirmEmail.Text = "" | ||
End Function | ||
End Class | ||
|
||
End Namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.