mod_password_policy: Support for additional policies provided by other modules
E.g. check a password contains an uppercase character:
module:provides("password-policy", {
name = "contains_uppercase";
check_password = function (password, policy)
return (policy ~= true) or (not not password:match("%u"));
end;
})
Config:
password_policy = {
contains_uppercase = true;
}
# Introduction
This module adds a room configuration option to hide inline media from
unaffiliated users in MUCs and display them as links instead.
This can be useful in public channels where content posted by users should not
be shown by default.
# Configuring
## Enabling
``` {.lua}
Component "rooms.example.net" "muc"
modules_enabled = {
"muc_restrict_media";
}
```
## Settings
A default setting can be provided in the config file:
``` {.lua}
muc_room_default_restrict_media = true
```