diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-10-11 15:56:42 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-10-11 15:56:42 +0200 |
commit | da31582911db0f01df2b3427770da165c7c6b0b4 (patch) | |
tree | ed81067691975d7ddd098b678d5b2f10831738e5 /src/main/java/eu/siacs/conversations/generator/IqGenerator.java | |
parent | 540f6510de41ed3ff899ad4cfe2ab157a2316edf (diff) | |
parent | 6a6cb43b17df1557033c217d199706bd4e09673e (diff) |
Merge pull request #1461 from akallabeth/captcha_support
Implemented account registration with captcha
Diffstat (limited to 'src/main/java/eu/siacs/conversations/generator/IqGenerator.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/generator/IqGenerator.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java index 42c57b24..ba852606 100644 --- a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java +++ b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java @@ -266,4 +266,14 @@ public class IqGenerator extends AbstractGenerator { } return packet; } + + public IqPacket generateCreateAccountWithCaptcha(Account account, String id, Data data) { + final IqPacket register = new IqPacket(IqPacket.TYPE.SET); + + register.setTo(account.getServer()); + register.setId(id); + register.query("jabber:iq:register").addChild(data); + + return register; + } } |