Commit Graph
19 Commits
Author SHA1 Message Date
Rodrigo Cortés Cano f6a29e570c 4.x: enforce TOTP policy for XML-RPC login (#1137)
Reject password-only XML-RPC authentication for mailbox accounts that require TOTP while preserving existing behavior for accounts without TOTP.

This ports PR #1131 with PHP 7.4 compatibility and includes the documented XML-RPC/TOTP limitation requested during master review.

Refs #1128

thanks @TrapoSAMA
2026-09-02 20:17:45 +01:00
David Goodwin a0a6944f3a fix wrong name for table_name 2025-06-17 19:19:00 +01:00
David Goodwin edb368edb0 merge postfixadmin_4.0 in, fix conflicts in model/TotpPf.php 2025-06-17 19:18:03 +01:00
David Goodwin 986aefbdd0 stfu psalm - Encoding definitely takes a value 2025-06-11 21:26:34 +01:00
David Goodwin 5f9d0f5223 try and allow endroid\qrcode v5 to be installed, if the version of PHP supports it ... this reduces the number of deprecation warnings shown (but does not remove them all) 2025-06-11 21:25:09 +01:00
David Goodwin 1a1d3f4977 token tidy up to TotpPF 2025-06-01 20:04:53 +01:00
David Goodwin e7e59bc4ae remove x/y suffix, improve error handling message when failing to delete a totp exception 2025-06-01 18:59:54 +01:00
David Goodwin 838144bfa0 typo fix (tablename/table_name) 2025-05-26 19:42:52 +01:00
Christian Boltz b71df0b403 TotoPf: use correct table name 2025-05-26 19:41:24 +01:00
Christian Boltz 0e7099c862 TotoPf: use correct table name 2025-05-26 20:04:17 +02:00
David Goodwin 5f46bdedaf respect db prefix stuff for the TOTP database tables. 2025-05-26 15:49:29 +01:00
David Goodwin 798e8b269c Topt app passwords fixes (WIP) (#805)
various improvements to the TOTP code see also:  #802
2025-05-16 20:31:20 +01:00
David Goodwin 6e6e4301ed an empty check would catch null ... while != "" will also match null it feels wrong 2024-01-05 19:31:54 +00:00
David Goodwin 39e378c783 improve type hinting 2023-12-27 16:17:55 +00:00
David Goodwin 8003978ca5 type hints etc and todo notes 2023-12-23 21:55:50 +00:00
David Goodwin 824ba906b1 more type hints 2023-12-23 21:49:57 +00:00
David Goodwin 4d6767cc37 avoid sql injection 2023-12-23 21:47:57 +00:00
David Goodwin 015d4ec9cd reindent / reformat; add type hints for some of the app password stuff; try and make sure someone can only remove their own app password (see revokeAppPassword() ) 2023-12-23 21:43:31 +00:00
David Goodwin 4d17aa6ef9 manaul merge in of verdigado:master (see #753) (MFA/TOTP support) 2023-12-23 17:05:52 +00:00