X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/7b32e917cba7c78d74297b2aefaf823ed262a921..218b3b380900f1ddcc6994173a07c7edb892629e:/python/disorder.py.in diff --git a/python/disorder.py.in b/python/disorder.py.in index 650671d..36157a0 100644 --- a/python/disorder.py.in +++ b/python/disorder.py.in @@ -881,6 +881,15 @@ class client: self._simple("users") return self._body() + def register(self, username, password, email): + """Register a user""" + res, details = self._simple("register", username, password, email) + return _split(details)[0] + + def confirm(self, confirmation): + """Confirm a user registration""" + res, details = self._simple("confirm", confirmation) + ######################################################################## # I/O infrastructure