Permalink
Browse files

Implemented Captcha

  • Loading branch information...
1 parent 3f57a7e commit 44332b7da8cc1dada941f87d3e71ddf14b5ada75 @mumansoo mumansoo committed Apr 1, 2011
View
140 node_modules/signupModule.js 100644 → 100755
Oops, something went wrong.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -1,14 +1,27 @@
<h1>Signup</h1>
<form id="signup_form" action="signup" method="post" enctype="application/x-www-form-urlencoded" onsubmit="return signupValidate(this);">
-
- <p><b>*</b>Username<br><input type="text" name="username" autofocus ></p>
- <p><b>*</b>Email<br><input type="text" name="email"></p>
- <p><b>*</b>Password<br><input type="password" name="new_password" value=""></p>
- <p><b>*</b>Confirm Password<br><input type="password" name="confirm_password" value=""></p>
-
+ <p>Username<br><input type="text" name="username" autofocus ></p>
+ <p>Email<br><input type="text" name="email"></p>
+ <p>Password<br><input type="password" name="new_password" value=""></p>
+ <p>Confirm Password<br><input type="password" name="confirm_password" value=""></p>
+
<p>Postal Code<br><input type="text" name="postalcode"></p>
<p>Neighbourhood<br><input type="text" name="neighborhood"></p>
- <p><b>*</b> = required fields</p>
+ <script>
+ var imgdir = "cimg/"; // identify directory where captcha images are located
+ var jfldid = "uword"; // identify word field id name
+ var jfldsz = 20; // identify word field size
+
+ anum = (Math.floor(Math.random()*10))+1;
+ imgid = parseInt(anum);
+ document.write("<p><img src=\"" + decodeURIComponent(imgdir) + imgid + ".jpg\" width=\"290\" height=\"80\" alt=\"\"><\/p>");
+ document.write("<input type=\"hidden\" name=\"code\" value= \"" + imgid + "\"/>");
+
+ </script>
+ <p>Enter the characters you see: </p>
+ <p>Code:<br><input type="text" name="user_code"></p>
+
+
<input type="submit" value="Submit" />
</form>

0 comments on commit 44332b7

Please sign in to comment.