models.py
649 Bytes
-
Use ejabberd's MySQL for usernames/passwords · 9048630d
When chat is enabled, sync user accounts with the ejabberd server by directly writing into its MySQL database. This is ugly in the sense that ejabberd just does a simple string comparison when authenticating a password against a username, so we have to send passwords in the clear in the templates. In a future commit, I'll implement a password rotation mechanism to make this slightly more robust: currently, everyone's password is just a dummy string. To enable this, you'll have to add a 'jabber' key into your DATABASES dict in the settings, and point at an actual ejabberd's MySQL instance. The current plan is to just point at one that we've got set up, since running ejabberd locally (not to mention on MySQL instead of Mnesia) is non-trivial.
Nate Hardison committed