-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Multi-Factor Authentication (replaces Two Factor Authentication) #37912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 201 commits
Commits
Show all changes
262 commits
Select commit
Hold shift + click to select a range
f2fb3f3
Captive TFA
nikosdion 61cfe95
Captive TFA
nikosdion 9711fb6
Captive TFA
nikosdion 58a54bc
Captive TFA
nikosdion 4c13691
Captive TFA
nikosdion 3f3775c
Captive TFA
nikosdion 89a7bd0
Captive TFA
nikosdion 13fe960
Captive TFA
nikosdion d3017a4
Captive TFA
nikosdion 51e9dbf
Captive TFA
nikosdion 0994769
Captive TFA
nikosdion 8ad9907
Captive TFA
nikosdion bc234a1
Captive TFA
nikosdion 1333e52
Merge branch '4.2-dev' into feature/tfa
nikosdion 47588c1
Captive TFA
nikosdion ddfa506
Captive TFA
nikosdion 9611c36
Captive TFA
nikosdion 8e11155
Captive TFA
nikosdion ab2e747
Captive TFA
nikosdion 80a35a3
Captive TFA
nikosdion 865f621
Captive TFA
nikosdion 1c1a167
Captive TFA
nikosdion 6045ba4
Captive TFA
nikosdion 5ba08ed
Captive TFA
nikosdion 7aaa6d9
Captive TFA
nikosdion 259b4ba
Captive TFA
nikosdion 25855e6
Captive TFA
nikosdion 93ce4b2
Captive TFA
nikosdion 82ef6a1
Captive TFA
nikosdion b275436
Merge branch '4.2-dev' into feature/tfa
nikosdion d7f0395
Captive TFA
nikosdion eef166e
Captive TFA
nikosdion b27cb8f
Captive TFA
nikosdion 47d570f
Captive TFA
nikosdion 92fbbb3
Captive TFA
nikosdion bdf19c4
Captive TFA
nikosdion 9da3498
Captive TFA
nikosdion d3b20a5
Captive TFA
nikosdion 2923cc9
Captive TFA
nikosdion 68c0a16
Captive TFA
nikosdion 4256f11
Captive TFA
nikosdion e321be0
Captive TFA
nikosdion aa98942
Captive TFA
nikosdion c150aba
Captive TFA
nikosdion 7c96b49
Captive TFA
nikosdion d8a7d28
Captive TFA
nikosdion 845cb67
Captive TFA
nikosdion 67bc308
Captive TFA
nikosdion bddb12d
Captive TFA
nikosdion 9c5be51
Captive TFA
nikosdion 8958daf
Captive TFA
nikosdion 157a823
Captive TFA
nikosdion 2e74336
Captive TFA
nikosdion db4e68f
Captive TFA
nikosdion 9353c23
Captive TFA
nikosdion 9a56655
Captive TFA
nikosdion e81551b
Captive TFA
nikosdion 4ec9196
Captive TFA
nikosdion 6327372
Captive TFA
nikosdion 27e12ba
Captive TFA
nikosdion 536c3b5
Captive TFA
nikosdion add3d21
Captive TFA
nikosdion ca1df67
Captive TFA
nikosdion 3f4b0d0
SQL code style and consistency fixes
richard67 5f795c9
Add "CAN FAIL" installer hint
richard67 cbf3517
Change longtext to mediumtext
richard67 b79caec
Change longtext to mediumtext in update script
richard67 2a5ab39
No default value for method
richard67 af54b6a
Use real null values for last_used
richard67 1433833
Captive TFA
nikosdion 4561bd3
Captive TFA
nikosdion fa2a278
Captive TFA
nikosdion 55e62f6
Captive TFA
nikosdion dcc511b
Captive TFA
nikosdion bb1ab26
Captive TFA
nikosdion 0f5b388
Captive TFA
nikosdion ec3b7ee
Captive TFA
nikosdion 0e385b1
Captive TFA
nikosdion 63544ba
Captive TFA
nikosdion 63ea23d
Captive TFA
nikosdion ba786c6
Captive TFA
nikosdion 9cd5ebc
Captive TFA
nikosdion a9c3881
Captive TFA
nikosdion c5852fe
Captive TFA
nikosdion ab4fcab
Captive TFA
nikosdion 39a79a0
Captive TFA
nikosdion ef88682
Captive TFA
nikosdion 0fb29d4
Captive TFA
nikosdion d9303d7
Captive TFA
nikosdion 8f6b0b9
Captive TFA
nikosdion c91d859
Captive TFA
nikosdion f719269
codestyle changes
brianteeman f12fd90
Renamed SiteTemplateAware to SiteTemplateTrait
nikosdion 3b9bd78
Remove more instances of "2SV"
nikosdion e30e9ef
s/Two Step Verification/Two Step Validation/
nikosdion cc028e9
Language style
nikosdion 1917c0f
Remove unnecessary language string
nikosdion acdf9e2
Remove redundant paragraph tags from PLG_TWOFACTORAUTH_EMAIL_XML_DESC…
nikosdion 8c0e97d
Remove redundant paragraph tags from PLG_TWOFACTORAUTH_EMAIL_XML_DESC…
nikosdion 6f582f2
Merge pull request #5 from brianteeman/patch-6
nikosdion 752ff54
Remove the info tooltip in the methods list
nikosdion fe9f082
Merge remote-tracking branch 'nikosdion/feature/tfa' into feature/tfa
nikosdion 64de893
Simplify the TFA enabled / disabled message
nikosdion 086d15f
Fix layout of backup codes in methods list
nikosdion 01a29a3
Fix mail message
nikosdion 34dee38
Confirm TFA method deletion
nikosdion f5c53ca
Merge branch '4.2-dev' into feature/tfa
nikosdion 64c9570
Simplify code label in Email plugin
nikosdion 94ce1ec
Remove more dead code referencing the legacy TFA
nikosdion b1d5f65
Use concrete events
nikosdion 963584e
WebAuthn support for some Android devices and FIDO keys
nikosdion 61b73d2
Rename Tfa to Mfa
nikosdion b492375
Move Joomla\CMS\Event\TwoFactor to Joomla\CMS\Event\MultiFactor
nikosdion b5250c9
Two Factor Authentication => Multi-factor Authentication
nikosdion 97eddfd
`#__user_tfa` => `#__user_mfa`
nikosdion 992b833
twofactorauth => multifactorauth
nikosdion 538b7ec
Change the post-install message
nikosdion bf819dc
Remove references to “second factor”
nikosdion fe7cfc5
Remove the legacy TFA plugins
nikosdion b0fe4f0
I missed a few things
nikosdion 159606e
I missed a few more things
nikosdion ca0a5bd
Wrong redirection from post-installation messages
nikosdion 9234683
Fix NotifyActionLog expected event names
nikosdion d1e4b74
Improve display of Last Used date
nikosdion 36a1829
MFA extension helper
brianteeman 63ed002
Merge branch '4.2-dev' into feature/tfa
richard67 2adc051
Remove unused field
nikosdion 78e5ad3
Remove no longer used language strings
nikosdion d5a7544
Merge remote-tracking branch 'nikosdion/feature/tfa' into feature/tfa
nikosdion 355b950
Undo changes in old SQL scripts
nikosdion b27ef83
Merge pull request #6 from brianteeman/patch-7
nikosdion fc173fb
Merge remote-tracking branch 'nikosdion/feature/tfa' into feature/tfa
nikosdion f55acea
Improve layout and accessibility of the methods list page
nikosdion 545efcf
Add missing options to plg_multifactorauth_email
nikosdion b2b6b6c
Sort lines alphabetically
nikosdion da2112f
Add label to the One Time Emergency Password input
nikosdion ceaa4a3
Sort lines
nikosdion d79f355
Fix PHPCS complaint
nikosdion e02371f
Formatting of XML files
nikosdion 5e9aa8f
Forgot to remove extra CSS class
nikosdion 4e1e25c
Apply suggestions from code review
nikosdion ac4d88f
Commit suggestions from code review
nikosdion 3302ba4
Commit formatting suggestions from code review
nikosdion 1b1f5e3
Commit formatting suggestions from code review
nikosdion a8637b7
Commit formatting suggestions from code review
nikosdion f856f86
Commit formatting suggestions from code review
nikosdion 4b9209f
Commit formatting suggestions from code review
nikosdion 2536919
Commit formatting suggestions from code review
nikosdion c8f71d6
Commit formatting suggestions from code review
nikosdion dfe386b
Commit formatting suggestions from code review
nikosdion 40c45e5
Commit formatting suggestions from code review
nikosdion c5d8886
Merge branch '4.2-dev' into feature/tfa
nikosdion 6bc34f8
Update build/media_source/plg_multifactorauth_webauthn/js/webauthn.es…
nikosdion def44de
Fix update SQL
nikosdion bbc4b34
Merge remote-tracking branch 'nikosdion/feature/tfa' into feature/tfa
nikosdion 287b475
Onboarding would result in a PHP exception
nikosdion 36ccc78
Make MFA plugins' publish state consistent between MySQL and PostgreSQL
nikosdion 296757d
Update administrator/components/com_users/src/Controller/MethodsContr…
nikosdion 8ab585b
Update administrator/components/com_admin/sql/updates/mysql/4.2.0-202…
nikosdion a489763
Update administrator/components/com_admin/sql/updates/postgresql/4.2.…
nikosdion 8a306d4
Update administrator/components/com_admin/sql/updates/mysql/4.2.0-202…
nikosdion 81c1e47
Update administrator/components/com_admin/sql/updates/postgresql/4.2.…
nikosdion 162d04e
Merge branch '4.2-dev' into feature/tfa
nikosdion 6ba1f9c
Update administrator/components/com_admin/sql/updates/postgresql/4.2.…
nikosdion fa07f71
Restore obsolete language strings
nikosdion 3b020af
Re-add the obsolete plugins' language files
nikosdion 086d76d
Merge remote-tracking branch 'nikosdion/feature/tfa' into feature/tfa
nikosdion 6daa821
Remove no longer used twofactor field
nikosdion 1e32f83
Rename CSS class to com-users-profile__multifactor
nikosdion f5b6869
Merge branch '4.2-dev' into feature/tfa
nikosdion f848778
Update administrator/language/en-GB/plg_multifactorauth_email.sys.ini
nikosdion bef3889
Update administrator/language/en-GB/plg_multifactorauth_email.ini
nikosdion 7f51791
Update administrator/language/en-GB/plg_multifactorauth_email.ini
nikosdion c9fd07c
Update administrator/language/en-GB/com_users.ini
nikosdion a0ec263
Update administrator/language/en-GB/com_users.ini
nikosdion 8ae8d9a
Update administrator/language/en-GB/com_users.ini
nikosdion d4417bd
Update administrator/language/en-GB/com_users.ini
nikosdion b85b84b
Update administrator/language/en-GB/com_users.ini
nikosdion d4295f9
Accessibility improvement
nikosdion f7cfb98
Improve language
nikosdion 7227c6c
Change the heading level
nikosdion e9c0c7c
Fix case of extension registry file
nikosdion c49f008
Remove accidental double space after echo
nikosdion db6dbd7
Remove BS3 leftovers
nikosdion 7044c3b
Remove BS3 leftovers
nikosdion d605bbc
Remove BS3 leftovers
nikosdion 7e187e8
Update administrator/components/com_users/tmpl/methods/list.php
nikosdion 185c6e6
Update components/com_users/tmpl/methods/list.php
nikosdion 9109666
Merge branch '4.2-dev' into feature/tfa
nikosdion d014ffb
PHP warnings when there are no MFA plugins enabled
nikosdion f9c780a
MFA onboarding was shown with no MFA plugins enabled
nikosdion 123e925
Backup codes alert is narrower than page on super-wide screens
nikosdion f3eb6d6
Backup codes alert heading font size fix in backend
nikosdion 9327d1f
Revert wording for JENFORCE_2FA_REDIRECT_MESSAGE
nikosdion d75a0f4
Backend users without `core.manage` on com_users were blocked
nikosdion 650b4aa
Onboarding in backend shouldn't have a Back button
nikosdion 8431ca0
Improve layout of method add/edit page
nikosdion 7e350ec
Remove unnecessary H5 tag from TOTP setup table
nikosdion e4adef5
Kill that bloody Back button with fire
nikosdion 3c56f73
MFA WebAuthn: use Joomla.Text instead of Joomla.JText
nikosdion f464df2
MFA WebAuthn: show meaningful error on HTTP
nikosdion af1ce98
MFA Email: more sensible email body
nikosdion 32d38d2
MFA WebAuthn: must be able to edit the title
nikosdion d66bc0b
MFA add/edit: remove placeholders, replace with help text
nikosdion c141c0f
Heading levels
nikosdion 9c3a0ce
Editing a user would show the wrong interface
nikosdion cdd1300
Refactor security checks
nikosdion 9c3864b
Add missing Group By to the SQL query
nikosdion 40c7617
Show MFA enabled when a legacy method is enabled
nikosdion f557f9c
Users: filter by MFA status
nikosdion ffddca9
Language clarification
nikosdion 381c4d6
Move the frontend onboarding page header to the top
nikosdion 801f6ce
User Options language clarification
nikosdion 0bec814
PostgreSQL installation SQL wasn't updated
nikosdion fe536a2
Adding periods to the end of lines of error messages you will never, …
nikosdion b29a6b8
Remove a tab
nikosdion 5f95438
Remove another tab from a comment
nikosdion 84d9cf5
Typo removing junk
nikosdion ed90fa9
Remove useless imports
nikosdion 4b82c3a
Busywork
nikosdion dd9d83f
Typo in the INI file
nikosdion 03385ab
Align comment
nikosdion 47e853b
Remove redundant SQL for PostgreSQL
nikosdion bedc2dd
Typo in labels' `for` attribute
nikosdion b42d313
Move backup codes to the top of the page
nikosdion 9e77f0b
Mandatory and forbidden MFA was not taken into account
nikosdion bcd044e
Show information when MFA is mandatory
nikosdion 3a9687e
Make the buttons smaller
nikosdion 1f6f281
The secondary button looks horrid in the frontend
nikosdion ffc43c0
Redirect users to login page in the frontend
nikosdion cb64651
MFA Email: fallback to standard mailer when the mail template isn't i…
nikosdion c589be1
Delete backup codes when the last MFA method is deleted
nikosdion f693b3d
Use text inputs for TOTP
nikosdion 1928296
Fix the buttons for WebAuthn
nikosdion dfb66ff
Clarify language strings
nikosdion 340c8eb
Use toolbar buttons in the backend
nikosdion 2ecf329
Change the icon classes
nikosdion 6cb63e8
Forgot to copy over the changes to the frontend
nikosdion 02c568e
Regression: configure existing authenticators
nikosdion c708639
Backup codes should never become the default method automatically
nikosdion bbfe0e1
Merge branch '4.2-dev' into feature/tfa
nikosdion 4d7a0c0
Improve methods list layout
nikosdion 21f877c
Use toolbar buttons in backend pages
nikosdion bbb5260
Fix return URLs for backend MFA edit pages
nikosdion b797fcc
Edit / Delete buttons mention the auth method name in the respective …
nikosdion f72a182
RTL aware back buttons
nikosdion ed01861
Merge branch '4.2-dev' into feature/tfa
nikosdion 083f308
Consistent use of the term Fixed Code
nikosdion ea72db0
Fix typo
nikosdion d86a9bf
Merge branch '4.2-dev' into feature/tfa
roland-d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.