webwork/src/main/webwork/examples/userreg Validator.java,1.1,1.2
[email protected] Tue, 11 Nov 2003 10:42:26 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/examples/userreg
In directory sc8-pr-cvs1:/tmp/cvs-serv29318/src/main/webwork/examples/userreg
Modified Files:
Validator.java
Log Message:
Fixed javadocs
Index: Validator.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/examples/userreg/Validator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Validator.java 26 Feb 2002 06:32:28 -0000 1.1
+++ Validator.java 11 Nov 2003 18:42:24 -0000 1.2
@@ -45,7 +45,7 @@
if (doNetCheck) {
String host = email.substring(index + 1);
try {
- InetAddress inetAddress = InetAddress.getByName(host);
+ InetAddress.getByName(host);
} catch (UnknownHostException e) {
return false;
}
@@ -57,13 +57,11 @@
/**
*
* @param ssn The Norwegian social security number
- * @param male This is true if the user is a male
+ * @param ssn The social security number to check
*/
public static boolean checkSsn(String ssn) {
- return true; // haven't hade time to generate samples of control numbers you can use, so for now we return true
- //return isSSNMod11(ssn);
-
+ return ssn!=null && ssn.trim().length()>0; // haven't hade time to generate samples of control numbers you can use, so for now we return true
}
/**
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/