hedwig-im / hedwig

An Adapter-based Bot Framework for Elixir Applications
MIT License
656 stars 73 forks source link

Add ability to register a user #15

Closed knewter closed 9 years ago

knewter commented 9 years ago

NOTE: This is hardcoded right now to the username/password style, which is not agnostic enough to support all xmpp use cases. However, it supports the default for ejabberd and mongooseim, which is at least a decent start. Unsure if it should be merged or if we should support something more generic here instead.

scrogson commented 9 years ago

Thanks @knewter. Can you add a test for this? Here's an example of testing with an iq with the randomly generated id: https://github.com/scrogson/hedwig/blob/master/test/hedwig/stanza_test.exs#L41

knewter commented 9 years ago

I amended the initial commit to add the test

knewter commented 9 years ago

woops this is what i meant now sorry

scrogson commented 9 years ago

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart: