Commit Graph

27 Commits

Author SHA1 Message Date
Matthew Wild 457096a13d mod_snikket_restricted_users: Don't isolate users with no roles
The code was originally written to fail safe in the event of failure, hence
the 'if roles and ...'. However a user with no roles (which is normal for a
normal user, especially on upgrade) can return nil.

Failure is signified by 'false', so now we explicitly catch this and return
early without bypassing isolation. Users with no roles (nil) or with roles
but not prosody:restricted bypass isolation.
2021-11-10 17:27:09 +00:00
Matthew Wild a5084a289e mod_snikket_restricted_users: Add some explanatory comments 2021-11-09 12:28:50 +00:00
Matthew Wild d47a6ddbc0 mod_snikket_restricted_users: Use event.actor, which is preferred and always present 2021-11-09 11:23:49 +00:00
Matthew Wild 0294b0e7e0 prosody: Prevent restricted users from creating public channels (#37) 2021-11-08 16:13:07 +00:00
Matthew Wild 5dddfeb876 prosody: Prevent federation for users with prosody:restricted role (#37) 2021-11-08 12:51:14 +00:00
Matthew Wild 1fe4571ab4 mod_snikket_ios_preserve_push: Handle case where user has no push registrations stored 2021-11-01 10:16:08 +00:00
Matthew Wild dae151c7c9 prosody: Add new module to load push registration for new sessions 2021-10-18 14:17:20 +01:00
Matthew Wild 83c757c786 prosody: Add module to expose stable client id across sessions 2021-10-18 13:50:36 +01:00
Matthew Wild e8dd2408b8 Dockerfile, mod_update_check: Update version string format 2021-05-31 12:23:52 +01:00
Matthew Wild 088d9cb840 Add bootstrapped admin accounts to the default group/circle (thanks jonas!) 2021-03-16 14:00:10 +00:00
Matthew Wild 32a7bc8954 mod_invites_bootstrap: Fix parameters to store:set() 2021-03-10 12:37:41 +00:00
Matthew Wild e9e5762936 mod_invites_bootstrap: Reject old index values 2021-03-10 12:13:11 +00:00
Matthew Wild b2431438b2 mod_invites_bootstrap: API and behaviour improvements 2021-03-10 11:49:18 +00:00
Matthew Wild 36ffd5d4a0 mod_invites_bootstrap: Module/API to create initial admin invite at startup 2021-03-09 16:33:12 +00:00
Matthew Wild 4cc3880ec7 Add flag to disable update checks 2021-02-02 13:58:02 +00:00
Matthew Wild b26a3eca60 prosody: Add record name to update check failure warning 2021-01-29 17:33:46 +00:00
Matthew Wild 03e4aa8c80 prosody: Give new module the correct directory structure 2021-01-28 21:39:48 +00:00
Matthew Wild dfb6cab374 prosody: Add new module mod_invites_default_group to add the default group to in-app invites 2021-01-28 21:28:40 +00:00
Matthew Wild 6cb87092bf mod_authz_internal: Remove in favour of upstream (prosody) module 2021-01-27 16:23:12 +00:00
Matthew Wild 1bff00eba7 prosody: Broad update to upstream (prosody-modules) where appropriate 2021-01-27 13:11:36 +00:00
Matthew Wild 4b8fcdafbd static stuff: switch to new logo filename 2021-01-22 20:37:06 +00:00
Matthew Wild e6d8303ece Remove static files and adjust paths as needed for new locations (served by snikket-web-proxy) 2021-01-22 17:07:59 +00:00
Matthew Wild 668592c87a mod_http_libjs: Allow configurable path 2020-11-11 16:42:08 +00:00
Matthew Wild fbb01a5f58 mod_update_check, mod_update_notify: Split into multiple modules and finish implementation (see also mod_admin_notify upstream) 2020-11-10 13:10:11 +00:00
Matthew Wild 4d550e0998 mod_easy_invite: Invalidate password reset tokens after use
Requires Prosody 84441c19750e
2020-06-22 11:40:45 +01:00
Matthew Wild 395ab8d404 mod_invites, mod_easy_invite: Add support for password reset invites (requires Prosody 99ae457c2459) 2020-06-19 07:06:36 +01:00
Matthew Wild d6157c6a15 Initial commit 2020-01-31 13:46:46 +00:00