19 Commits
Author SHA1 Message Date
Rodrigo Cortés Cano 01747fda26 Revoke stale XML-RPC authorization across web login and MFA (#1173)
Stop someone sharing a session cookie between xmlrpc and normal logins, and using it to avoid TOTP auth. 

thanks @TrapoSAMA
2026-10-13 17:10:21 +01:00
Rodrigo Cortés Cano 2c8a8893e9 Enforce TOTP policy for XML-RPC login (#1131)
if a user/mailbox has TOTP enabled, block access via XMLRPC (if it's enabled) as the two aren't compatible.

Part of #1128.

thanks @TrapoSAMA
2026-08-29 20:07:23 +01:00
David Goodwin 489c9aacb6 fix xmlrpc.php -> setAway - parameter types changed after this file was deleted 2026-03-29 11:56:33 +01:00
David Goodwin 1223197a7e formatting... 2026-03-29 11:48:05 +01:00
David Goodwin 522ba1a772 add back xmlrpc.php - it seems it is in use - see #993 2026-03-24 14:06:08 +00:00
David Goodwin 6ddc37c58f add missing tables to backup script (mailbox_app_password, totp_exception_address, dkim, dkim_signing) 2026-01-28 09:50:26 +00:00
David Goodwin 759304ecb8 apparently these all need reformatting 2024-12-05 14:33:41 +00:00
David Goodwin 2d6ded2786 PSR2 -> PSR12 formatting 2022-06-28 13:46:11 +01:00
David Goodwin 2edabc3e03 phpcs insists on some brace changes 2021-04-13 21:19:16 +01:00
David Goodwin 823f27b29d phpcs wants to change ... 2021-03-22 09:28:28 +00:00
David Goodwin 2a58056fff be more consistent with how we load common.php, improve comments 2021-03-09 20:34:09 +00:00
David Goodwin ce8c636eb5 rejig Login::__construct() as only one arg is really needed 2020-09-26 09:58:05 +01:00
David Goodwin 7107e17c4c composer format 2020-09-25 21:33:26 +01:00
David Goodwin b868f950bf refactor Login stuff out of Handler classes into Login... add tests 2020-09-25 21:32:53 +01:00
David Goodwin 3c7da4f3b8 Refactor some methods
PFAHandler::store() -> PFAHandler::save();
 PFAHandler::storemore() -> PFAHandler::postSave();
 PFAHandler::beforestore() -> PFAHandler::preSave();
2020-09-25 21:29:45 +01:00
David Goodwin 74002bbf57 psalm fixes 2018-12-27 21:43:11 +00:00
David Goodwin 299735773e fix phpdoc 2018-06-18 21:34:42 +01:00
Adrien Crivelli 15df6c1d7b Reformat everything with PHP-Cs-Fixer 2018-01-26 23:54:37 +09:00
David Goodwin 99147d51eb move public facing stuff into public/, this allows us to stop exposing templates_c/ etc to the world 2018-01-25 20:27:09 +00:00