Matthew Wild
073a654eff
mod_register_ibr: Add event for successful password reset
...
This is in addition to the existing event for password changes. This
one includes additional details about the actor, and only triggers
when the change is due to the account owner (presumably) resetting.
As example use case is to invalidate one-time password reset tokens.
6 years ago
Kim Alvefur
28f0267645
mod_muc_mam: Don't strip MUC <x> tags, fix #1567
6 years ago
Matthew Wild
f480583839
mod_register_ibr: Allow registration to reset an existing account password if permitted by a plugin
6 years ago
Kim Alvefur
efcf7cb7d4
mod_admin_shell: Update for async.wait_for rename
6 years ago
Matthew Wild
0919bb30d3
mod_storage_internal, mod_storage_memory: Add support for query.before
...
Previously returned all results.
6 years ago
Matthew Wild
371d05a0c6
mod_storage_sql: Fix incorrect results when fetching items before specific archive id
...
Copy/paste error, introduced in deb68066c7aa
6 years ago
Boris Grozev
edd798dd98
mod_http: Support CIDR for trusted proxies.
6 years ago
Kim Alvefur
ababc84794
mod_admin_shell: Fix display of units for some statistics
6 years ago
Kim Alvefur
4a087da58e
mod_admin_shell: Skip multiplier adjustment for rates
6 years ago
Kim Alvefur
509549f679
mod_admin_shell: Format stats with util.human.units
6 years ago
Kim Alvefur
71c6728e69
mod_auth_internal_*: Apply saslprep to passwords
...
Related to #1560
6 years ago
Kim Alvefur
faa381e3ed
mod_storage_internal: Fix error in time limited queries on items without 'when' field, fixes #1557
6 years ago
Kim Alvefur
031e272a9c
mod_muc_mam: Remove spoofed archive IDs before archiving, fix #1552
...
The stanza-id added during archiving looks exactly like what should be
stripped, so the stripping must happen before archiving.
Getting priorities right is hard!
Also no test coverage yet.
6 years ago
Kim Alvefur
b8779399f6
mod_csi_simple: Consider XEP-0353: Jingle Message Initiation important
...
Improves experience with VoIP calls initiated via JMI
Closes #1548
6 years ago
Kim Alvefur
ed4cc77c76
mod_muc_mam: Fix missing advertising of XEP-0359, fixes #1547
6 years ago
Kim Alvefur
e0a9efae01
mod_muc_mam: Fix stanza id filter event name, fixes #1546
...
Nice typo
6 years ago
Kim Alvefur
7c18043404
mod_tls: Log when certificates are (re)loaded
...
Meant to reduce user confusion over what's reloaded and not.
6 years ago
Kim Alvefur
156f32c823
mod_carbons: Fix handling of incoming MUC PMs #1540
...
27f5db07bec9 fixed this wrong. The code is supposed to check if the
stanza is NOT sent to your bare JID. A MUC PM is always sent to your
full JID. Hopefully nobody sends MUC invites to full JIDs, because those
would be skipped by this as well.
6 years ago
Kim Alvefur
58663a07ca
mod_http_files: Avoid using inode in etag, fix #1498
6 years ago
Matthew Wild
57124da02a
MUC: Always include 'affiliation'/'role' attributes, defaulting to 'none' if nil
6 years ago
Kim Alvefur
710339a838
mod_vcard4: Report correct error condition ( fixes #1521 )
...
On error, the second return value is the error condition, not the third.
6 years ago
Emmanuel Gil Peyrot
7484fb15cb
mod_register_ibr: Add FORM_TYPE as required by XEP-0077 ( fixes #1511 )
...
Backport of f90abf142d53 from trunk
6 years ago
Kim Alvefur
65a654d726
mod_storage_sql: Add index covering sort_id to improve performance ( fixes #1505 )
6 years ago
Kim Alvefur
89af997157
mod_admin_telnet: Handle unavailable cipher info ( fixes #1510 )
...
The LuaSec :info() method gathers info using the OpenSSL function
SSL_get_current_cipher(). Documentation for this function states that it
may return NULL if no session has been established (yet). If so, the
LuaSec functions wrapping this return nil, triggering a nil-indexing
error in mod_admin_telnet.
6 years ago
Matthew Wild
520e494813
MUC: Persist affiliation_data in new MUC format!
6 years ago
Kim Alvefur
e3911ce5da
mod_mam,mod_muc_mam: Allow other work to be performed during archive cleanup ( fixes #1504 )
...
This lets Prosody handle socket related work between each step in the
cleanup in order to prevent the server from being completely blocked
during this.
An async storage backend would not need this but those are currently
rare.
6 years ago
Kim Alvefur
042b514235
mod_pubsub, mod_pep: Ensure correct number of children of <item/> ( fixes #1496 )
6 years ago
Kim Alvefur
2de7db5f8b
mod_muc_mam: Fix traceback saving message from non-occupant ( fixes #1497 )
...
Caused by a plugin sending a message from the room itself.
6 years ago
Kim Alvefur
6e53a3a601
mod_storage_sql: Move update limit check back one step, fixes traceback
...
0c00274528a4 moved it one step too far, so the check was performed
before connecting to the database instead of after.
6 years ago
Kim Alvefur
84e0c87b7e
mod_storage_sql: Fix check for deletion limits ( fixes #1494 )
...
The check was only performed if sql_manage_tables was set to true (the default)
It should always be performed
6 years ago
Matthew Wild
ccc5516646
mod_muc: Allow control over the server-admins-are-room-owners feature (see #1174 )
6 years ago
Kim Alvefur
1d1491c01b
mod_admin_telnet: Create a DNS resolver per console session ( fixes #1492 )
...
This is now the common pattern, eg see mod_s2s.
6 years ago
Matthew Wild
2418c3fe43
mod_websocket: Fire event on session creation (thanks Aaron van Meerten)
6 years ago
Matthew Wild
4167f630b8
mod_posix: Support for command-line flags to override 'daemonize' config option
...
-D / --daemonize
-F / --no-daemonize
6 years ago
Kim Alvefur
eb7a71a645
mod_websocket: Clear mask bit when reflecting ping frames ( fixes #1484 )
6 years ago
Kim Alvefur
6b98a3f551
mod_s2s: Move out of empty directory
...
mod_s2s.lua had been all alone in there since the removal of
s2sout.lib.lua in 756b8821007a
6 years ago
Kim Alvefur
753836c876
mod_admin_shell: Fix error due to float passed to os.date in Lua 5.3
...
Thanks Martin
6 years ago
Kim Alvefur
aa8c162f11
mod_admin_socket: Use module API meant for file paths
...
Makes it so that a relative path in the config becomes relative to the
data directory.
6 years ago
Kim Alvefur
a78297bb6c
mod_vcard_legacy: Fix publishing vcard without avatar
6 years ago
Kim Alvefur
cd40d2a630
mod_vcard_legacy: Remove semi-broken support for multiple avatars
...
Nobody does this. If someone wants to they should go use the PEP method
directly instead.
Additionally, this got in the way of doing multiple avatars The PEP Way,
since it treated each 'data' as a distinct avatar with an optional
corresponding 'metadata', which is not how it works.
6 years ago
Matthew Wild
81457f2fff
mod_admin_shell: Remove old variable declaration [luacheck]
6 years ago
Kim Alvefur
5cdbe0edde
mod_admin_socket: Use wrapserver if available
...
Why have a custom accept function when this is net.server's entire
thing?
6 years ago
Matthew Wild
f554caa3ac
mod_admin_shell: Remove extra newline at end of help text
6 years ago
Matthew Wild
e703759258
mod_admin_shell, mod_admin_telnet, util.prosodyctl.shell: Separate output from final result
...
Fixes the client pausing for input after output from commands.
6 years ago
Matthew Wild
b0463f0290
mod_admin_telnet: Become a front for mod_admin_shell
6 years ago
Matthew Wild
9daa5c028c
mod_admin_shell: New module that implements the console interface over an admin socket
6 years ago
Matthew Wild
4c6992a00e
mod_admin_socket, util.adminstream: New module to manage a local unix domain socket for admin functionality
6 years ago
Kim Alvefur
5abc2e6a5c
mod_c2s,mod_s2s: Make stanza size limits configurable
6 years ago
Kim Alvefur
d22e85debc
mod_c2s,mod_s2s: Use a distinct stream error for hitting stanza size limit
...
Since this is not a real parse error, it should not be reported as such.
6 years ago
Kim Alvefur
29f51d7e6d
mod_admin_telnet: Update existing sessions on reload
...
This removes the need to disconnect and reconnect to the telnet console
for changes to take effect.
6 years ago