Bladeren bron

Clarify usage of `locked_domain`.

Also, declare it in the controlbox plugin, not in core, where it's not used.
JC Brand 8 jaren geleden
bovenliggende
commit
bfeb297ffc
4 gewijzigde bestanden met toevoegingen van 10 en 4 verwijderingen
  1. 2 2
      docs/source/conf.py
  2. 7 1
      docs/source/configuration.rst
  3. 1 0
      src/converse-controlbox.js
  4. 0 1
      src/converse-core.js

+ 2 - 2
docs/source/conf.py

@@ -48,9 +48,9 @@ copyright = u'2014, JC Brand'
 # built documents.
 #
 # The short X.Y version.
-version = '3.2.0-rc'
+version = '3.2.0'
 # The full version, including alpha/beta/rc tags.
-release = '3.2.0-rc'
+release = '3.2.0'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

+ 7 - 1
docs/source/configuration.rst

@@ -485,7 +485,7 @@ default_domain
 Specify a domain to act as the default for user JIDs. This allows users to log
 in with only the username part of their JID, instead of the full JID.
 
-For example, if ``default_domain`` is ``example.org``, then the user:
+For example, if ``default_domain`` is ``example.org``, then the user
 ``johnny@example.org`` can log in with only ``johnny``.
 
 JIDs with other domains are still allowed but need to be provided in full.
@@ -701,6 +701,12 @@ locked_domain
 
 Similar to `default_domain`_ but no other domains are allowed.
 
+For example, if ``locked_domain`` is set to ``example.org``, then the user
+``johnny@example.org`` can log in with only ``johnny``.
+
+Additionally, only users registered on the ``example.org`` host can log in, no
+other users are allowed to log in.
+
 message_archiving
 -----------------
 

+ 1 - 0
src/converse-controlbox.js

@@ -188,6 +188,7 @@
             _converse.api.settings.update({
                 allow_logout: true,
                 default_domain: undefined,
+                locked_domain: undefined,
                 show_controlbox_by_default: false,
                 sticky_controlbox: false,
                 xhr_user_search: false,

+ 0 - 1
src/converse-core.js

@@ -276,7 +276,6 @@
             include_offline_state: false,
             jid: undefined,
             keepalive: true,
-            locked_domain: undefined,
             message_carbons: true,
             message_storage: 'session',
             password: undefined,