There is already an account with this e-mail address! You can login or reset your password.
@@ -33,6 +33,7 @@
+
-
+
diff --git a/our.umbraco.org/usercontrols/Signup.ascx.cs b/our.umbraco.org/usercontrols/Signup.ascx.cs
index d672f5eb..1fb1a24d 100644
--- a/our.umbraco.org/usercontrols/Signup.ascx.cs
+++ b/our.umbraco.org/usercontrols/Signup.ascx.cs
@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
+using System.Configuration;
+using System.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
@@ -25,6 +27,8 @@ namespace our.usercontrols
//lazyloading the needed javascript for validation. (addded it to the master template as our ahah forms need it aswel)
//umbraco.library.RegisterJavaScriptFile("jquery.validation", "/scripts/jquery.validation.js");
+ recaptcha.PrivateKey = ConfigurationManager.AppSettings["RecaptchaPrivateKey"];
+
MemberExists.Visible = false;
if (!Page.IsPostBack && m != null)
@@ -62,7 +66,17 @@ namespace our.usercontrols
tb_location.Text = m.getProperty("location").Value.ToString();
}
-
+ // ReCaptcha is wrong when Page.IsValid is false
+ Page.Validate();
+ if (Page.IsPostBack && Page.IsValid == false)
+ {
+ tb_password.Attributes["value"] = tb_password.Text;
+ err_recaptcha.Visible = true;
+ }
+ else
+ {
+ err_recaptcha.Visible = false;
+ }
}
protected void createMember(object sender, EventArgs e)
@@ -109,7 +123,7 @@ namespace our.usercontrols
}
else
{
- if (tb_email.Text != "")
+ if (tb_email.Text != "" && Page.IsValid)
{
m = Member.GetMemberFromLoginName(tb_email.Text);
if (m == null)
diff --git a/our.umbraco.org/usercontrols/Signup.ascx.designer.cs b/our.umbraco.org/usercontrols/Signup.ascx.designer.cs
index 889a5ac8..2fac6e6a 100644
--- a/our.umbraco.org/usercontrols/Signup.ascx.designer.cs
+++ b/our.umbraco.org/usercontrols/Signup.ascx.designer.cs
@@ -237,6 +237,33 @@ namespace our.usercontrols {
///
protected global::System.Web.UI.WebControls.HiddenField tb_lng;
+ ///
+ /// lbl_recaptcha control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lbl_recaptcha;
+
+ ///
+ /// recaptcha control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::Recaptcha.RecaptchaControl recaptcha;
+
+ ///
+ /// err_recaptcha control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label err_recaptcha;
+
///
/// bt_submit control.
///
diff --git a/packages/repositories.config b/packages/repositories.config
index 3e0d7ee9..f7514f9e 100644
--- a/packages/repositories.config
+++ b/packages/repositories.config
@@ -1,5 +1,6 @@
+
diff --git a/uWiki/BusinessLogic/WikiFile.cs b/uWiki/BusinessLogic/WikiFile.cs
index 488dcb0b..09132a1a 100644
--- a/uWiki/BusinessLogic/WikiFile.cs
+++ b/uWiki/BusinessLogic/WikiFile.cs
@@ -90,7 +90,8 @@ namespace uWiki.Businesslogic
if (Directory.Exists(HttpContext.Current.Server.MapPath(path)) == false)
Directory.CreateDirectory(HttpContext.Current.Server.MapPath(path));
-
+
+ path = string.Format("{0}/{1}_{2}.{3}", path, DateTime.Now.Ticks, umbraco.cms.helpers.url.FormatUrl(filename), extension);
file.SaveAs(HttpContext.Current.Server.MapPath(path));