X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/5b3f0631ed2aff1d83499e5daa148dafc345f741..ba39faf632da43d64106536f256153c2092346e4:/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