Clarify usage of locked_domain.

Also, declare it in the controlbox plugin, not in core, where it's not used.
This commit is contained in:
JC Brand 2017-08-15 10:23:57 +02:00
parent f07f6e7bb7
commit bfeb297ffc
4 changed files with 10 additions and 4 deletions

View File

@ -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.

View File

@ -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
-----------------

View File

@ -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,

View File

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