]> git.defcon.no Git - hermes/blobdiff - doc/api-nodes.txt
Implemented user/available test-node, added collision-detect to user/add_local and...
[hermes] / doc / api-nodes.txt
index 7ea2100d3f80396d4ade386d053f7a2fb23a24c6..a288bbda9639c1f5fa78943b8cf5377769d9e941 100644 (file)
@@ -85,6 +85,14 @@ user/remove?user=foo@bar.bz
 
        Returns 'ok' on success.
 
+user/available?username=foo&domain=bar
+user/available?user=foo@bar.bz
+       Tests an address to see if it is available.
+
+       Returns 'ok' with 'cause' = 'nonexistant' if the address is available.
+
+       Returns 'failed' with 'cause' = 'exists' if the address is in use.
+
 user/gen_pw
        Test-node, generates a random password on the same form as that used by
        user/add_local. May be used with the to-be-implemented change_pw node.
@@ -222,9 +230,6 @@ TODO list:
 
 authentication-mechanism :)
 
-Add collision prevention for users, make sure that no user can be added when the user
-address would overlap/collide with a valid alias-address
-
 Change all GET to POST
 
 Implement test-tool for POST-based communication ;)