Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4.2-dev' into feature/workflow-emails
- Loading branch information
Showing
215 changed files
with
16,338 additions
and
2,507 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Accessibility issue | ||
about: Did you find an accessibility issue in the Joomla CMS? Please report it here. | ||
labels: a11y | ||
|
||
--- | ||
|
||
### Steps to reproduce the issue | ||
1. | ||
|
||
|
||
### Expected result | ||
|
||
|
||
|
||
### Actual result | ||
|
||
|
||
|
||
### Device and system info | ||
|
||
* What version of Joomla were you using? | ||
|
||
|
||
* What device were you using? (eg, phone, laptop) | ||
|
||
|
||
* What web browser were you using? (eg, Chrome, Safari) | ||
|
||
|
||
* If you were using assistive technology, please let us know the device or software you were using (eg VoiceOver, JAWS, sip-and-puff device, etc) | ||
|
||
|
||
|
||
### Additional comments | ||
|
||
If you know which [WCAG](https://www.w3.org/TR/WCAG/) or [ATAG](https://www.w3.org/TR/ATAG20/) criteria this violates, please indicate it here: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
administrator/components/com_admin/sql/updates/mysql/4.2.0-2022-05-15.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
-- | ||
-- Create the new table for MFA | ||
-- | ||
CREATE TABLE IF NOT EXISTS `#__user_mfa` ( | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`user_id` int unsigned NOT NULL, | ||
`title` varchar(255) NOT NULL DEFAULT '', | ||
`method` varchar(100) NOT NULL, | ||
`default` tinyint NOT NULL DEFAULT 0, | ||
`options` mediumtext NOT NULL, | ||
`created_on` datetime NOT NULL, | ||
`last_used` datetime, | ||
PRIMARY KEY (`id`), | ||
KEY `idx_user_id` (`user_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Multi-factor Authentication settings'; | ||
|
||
-- | ||
-- Remove obsolete postinstallation message | ||
-- | ||
DELETE FROM `#__postinstall_messages` WHERE `condition_file` = 'site://plugins/twofactorauth/totp/postinstall/actions.php'; | ||
|
||
-- | ||
-- Add new MFA plugins | ||
-- | ||
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) VALUES | ||
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 1, 0), | ||
(0, 'plg_multifactorauth_yubikey', 'plugin', 'yubikey', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 2, 0), | ||
(0, 'plg_multifactorauth_webauthn', 'plugin', 'webauthn', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 3, 0), | ||
(0, 'plg_multifactorauth_email', 'plugin', 'email', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 4, 0), | ||
(0, 'plg_multifactorauth_fixed', 'plugin', 'fixed', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 5, 0); | ||
|
||
-- | ||
-- Update MFA plugins' publish status | ||
-- | ||
UPDATE `#__extensions` AS `a` | ||
INNER JOIN `#__extensions` AS `b` on `a`.`element` = `b`.`element` | ||
SET `a`.enabled = `b`.enabled | ||
WHERE `a`.folder = 'multifactorauth' | ||
AND `b`.folder = 'twofactorauth'; | ||
|
||
-- | ||
-- Remove legacy TFA plugins | ||
-- | ||
DELETE FROM `#__extensions` | ||
WHERE `type` = 'plugin' AND `folder` = 'twofactorauth' AND `element` IN ('totp', 'yubikey'); | ||
|
||
-- | ||
-- Add post-installation message | ||
-- | ||
INSERT IGNORE INTO `#__postinstall_messages` (`extension_id`, `title_key`, `description_key`, `action_key`, `language_extension`, `language_client_id`, `type`, `action_file`, `action`, `condition_file`, `condition_method`, `version_introduced`, `enabled`) | ||
SELECT `extension_id`, 'COM_USERS_POSTINSTALL_MULTIFACTORAUTH_TITLE', 'COM_USERS_POSTINSTALL_MULTIFACTORAUTH_BODY', 'COM_USERS_POSTINSTALL_MULTIFACTORAUTH_ACTION', 'com_users', 1, 'action', 'admin://components/com_users/postinstall/multifactorauth.php', 'com_users_postinstall_mfa_action', 'admin://components/com_users/postinstall/multifactorauth.php', 'com_users_postinstall_mfa_condition', '4.2.0', 1 FROM `#__extensions` WHERE `name` = 'files_joomla'; | ||
|
||
-- | ||
-- Create a mail template for plg_multifactorauth_email | ||
-- | ||
INSERT IGNORE INTO `#__mail_templates` (`template_id`, `extension`, `language`, `subject`, `body`, `htmlbody`, `attachments`, `params`) VALUES | ||
('plg_multifactorauth_email.mail', 'plg_multifactorauth_email', '', 'PLG_MULTIFACTORAUTH_EMAIL_EMAIL_SUBJECT', 'PLG_MULTIFACTORAUTH_EMAIL_EMAIL_BODY', '', '', '{"tags":["code","sitename","siteurl","username","email","fullname"]}'); |
63 changes: 63 additions & 0 deletions
63
administrator/components/com_admin/sql/updates/postgresql/4.2.0-2022-05-15.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
-- | ||
-- Create the new table for MFA | ||
-- | ||
CREATE TABLE IF NOT EXISTS "#__user_mfa" ( | ||
"id" serial NOT NULL, | ||
"user_id" bigint NOT NULL, | ||
"title" varchar(255) DEFAULT '' NOT NULL, | ||
"method" varchar(100) NOT NULL, | ||
"default" smallint DEFAULT 0 NOT NULL, | ||
"options" text NOT NULL, | ||
"created_on" timestamp without time zone NOT NULL, | ||
"last_used" timestamp without time zone, | ||
PRIMARY KEY ("id") | ||
); | ||
|
||
CREATE INDEX "#__user_mfa_idx_user_id" ON "#__user_mfa" ("user_id") /** CAN FAIL **/; | ||
|
||
COMMENT ON TABLE "#__user_mfa" IS 'Multi-factor Authentication settings'; | ||
|
||
-- | ||
-- Remove obsolete postinstallation message | ||
-- | ||
DELETE FROM "#__postinstall_messages" WHERE "condition_file" = 'site://plugins/twofactorauth/totp/postinstall/actions.php'; | ||
|
||
-- | ||
-- Add new MFA plugins | ||
-- | ||
INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state") VALUES | ||
(0, 'plg_multifactorauth_totp', 'plugin', 'totp', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 1, 0), | ||
(0, 'plg_multifactorauth_yubikey', 'plugin', 'yubikey', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 2, 0), | ||
(0, 'plg_multifactorauth_webauthn', 'plugin', 'webauthn', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 3, 0), | ||
(0, 'plg_multifactorauth_email', 'plugin', 'email', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 4, 0), | ||
(0, 'plg_multifactorauth_fixed', 'plugin', 'fixed', 'multifactorauth', 0, 0, 1, 0, 1, '', '', '', 5, 0); | ||
|
||
-- | ||
-- Update MFA plugins' publish status | ||
-- | ||
UPDATE "#__extensions" AS "a" | ||
SET "enabled" = "b"."enabled" | ||
FROM "#__extensions" AS "b" | ||
WHERE "a"."element" = "b"."element" | ||
AND "a"."folder" = 'multifactorauth' | ||
AND "b"."folder" = 'twofactorauth'; | ||
|
||
-- | ||
-- Remove legacy TFA plugins | ||
-- | ||
DELETE FROM "#__extensions" | ||
WHERE "type" = 'plugin' AND "folder" = 'twofactorauth' AND "element" IN ('totp', 'yubikey'); | ||
|
||
-- | ||
-- Add post-installation message | ||
-- | ||
INSERT INTO "#__postinstall_messages" ("extension_id", "title_key", "description_key", "action_key", "language_extension", "language_client_id", "type", "action_file", "action", "condition_file", "condition_method", "version_introduced", "enabled") | ||
SELECT "extension_id", 'COM_USERS_POSTINSTALL_MULTIFACTORAUTH_TITLE', 'COM_USERS_POSTINSTALL_MULTIFACTORAUTH_BODY', 'COM_USERS_POSTINSTALL_MULTIFACTORAUTH_ACTION', 'com_users', 1, 'action', 'admin://components/com_users/postinstall/multifactorauth.php', 'com_users_postinstall_mfa_action', 'admin://components/com_users/postinstall/multifactorauth.php', 'com_users_postinstall_mfa_condition', '4.2.0', 1 FROM "#__extensions" WHERE "name" = 'files_joomla' | ||
ON CONFLICT DO NOTHING; | ||
|
||
-- | ||
-- Create a mail template for plg_multifactorauth_email | ||
-- | ||
INSERT INTO "#__mail_templates" ("template_id", "extension", "language", "subject", "body", "htmlbody", "attachments", "params") VALUES | ||
('plg_multifactorauth_email.mail', 'plg_multifactorauth_email', '', 'PLG_MULTIFACTORAUTH_EMAIL_EMAIL_SUBJECT', 'PLG_MULTIFACTORAUTH_EMAIL_EMAIL_BODY', '', '', '{"tags":["code","sitename","siteurl","username","email","fullname"]}') | ||
ON CONFLICT DO NOTHING; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.