Update of /var/cvs/applications/email/src/org/mmbase/datatypes
In directory james.mmbase.org:/tmp/cvs-serv29713/datatypes

Modified Files:
        VerifyEmailProcessor.java 
Log Message:
added the 'verityEmail' function on the sendmail module because you cannot call 
java from a tag-files body. Also made it return the checked node, which can be 
convenient


See also: 
http://cvs.mmbase.org/viewcvs/applications/email/src/org/mmbase/datatypes


Index: VerifyEmailProcessor.java
===================================================================
RCS file: 
/var/cvs/applications/email/src/org/mmbase/datatypes/VerifyEmailProcessor.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- VerifyEmailProcessor.java   12 Jun 2008 15:07:52 -0000      1.7
+++ VerifyEmailProcessor.java   12 Aug 2008 09:15:18 -0000      1.8
@@ -39,7 +39,7 @@
  *
  *
  * @author Michiel Meeuwissen
- * @version $Id: VerifyEmailProcessor.java,v 1.7 2008/06/12 15:07:52 michiel 
Exp $
+ * @version $Id: VerifyEmailProcessor.java,v 1.8 2008/08/12 09:15:18 michiel 
Exp $
 
  */
 
@@ -188,7 +188,7 @@
         return encrypt(node.getNodeManager().getName() + SEP + field.getName() 
+ SEP + key);
     }
 
-    public static boolean validate(Cloud cloud, String encryptedKey) {
+    public static Node validate(Cloud cloud, String encryptedKey) {
         String keyChain = decrypt(encryptedKey.replaceAll(" ", "+"));
         log.debug("Found keyChain " + keyChain + " (from " + encryptedKey + " 
)");
         int pos1 = keyChain.indexOf(SEP);
@@ -206,9 +206,9 @@
             Node node = nl.getNode(0);
             node.setStringValue(field, key);
             node.commit();
-            return true;
+            return node;
         }
-        return false;
+        return null;
     }
 
     private static CharTransformer stripper;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to