X-Git-Url: https://git.defcon.no/?a=blobdiff_plain;f=doc%2Fapi-nodes.txt;fp=doc%2Fapi-nodes.txt;h=9d0e347bf43ca577530cc9a1f778ecf5f763761b;hb=1482cea4e589347ee79cc563f291661ef7a4931b;hp=2d6e76acac149da1687f345c96919a87f66e3ce3;hpb=84ad3d162f09001c5378420250a2998f7d48fbe8;p=hermes diff --git a/doc/api-nodes.txt b/doc/api-nodes.txt index 2d6e76a..9d0e347 100644 --- a/doc/api-nodes.txt +++ b/doc/api-nodes.txt @@ -90,6 +90,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 Generates a random password on the same form as that used by user/add_local. @@ -241,9 +249,6 @@ Permissions! (user/permissions?user=...) 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 ;)