Commit Graph

336 Commits (600248e955747007cdac0cba0b8a79b9a9ff9560)

Author SHA1 Message Date
Felix Ableitner 600248e955 Add option to use smtp password when sending admin emails (fixes #272) 5 years ago
Christian Boltz 55858bf3a0
Fix table names in gen_show_status()
... by using table_by_key() instead of reading $CONF directly.
Otherwise, $CONF['database_prefix'] gets ignored and the query tries to
use a wrong table name.

This fixes a bug introduced in d809e0fbf7
5 years ago
David Goodwin 8e2e4eb189 run: composer format 5 years ago
David Goodwin cc19870923 drop function: db_connect_with_errors(); just throw from db_connect() if something goes wrong 5 years ago
Felix Ableitner 5d0a587fe7 Dont swallow database connection exceptions 5 years ago
David Goodwin ad858592f4 remove password_expiry logic from generic db_update function; the various *Handler classes should fix the password_expiry field already and this just breaks PgSQL; see #264 6 years ago
Roland Singer 23a7f1bfda allow TLD with 1 char 6 years ago
David Goodwin 9024dddf46 move password_expiration code into the MailboxHandler. 6 years ago
David Goodwin b8ee437169 add throw_exceptions parameter to db_update and db_insert. 6 years ago
Andreas Oberritter 000416c401 pacrypt_dovecot: Don't blacklist SCRAM-SHA-1
Actually it doesn't include the username at all. Fixes commit f444de4.
6 years ago
David Goodwin 9ccf5250cd remove config dump 6 years ago
David Goodwin 496657aa5d echo something helpful on db error when testing 6 years ago
David Goodwin 2e87464fc8 initial attempt at connecting to mysql socket file through pdo 6 years ago
David Goodwin 9cc04df973 move the password expiry date to be php generated so it works fine on all databases 6 years ago
David Goodwin 8632cbd1a9 improve documentation around the various crypt functions 6 years ago
David Goodwin 17a420152c use pdo/prepared statement for list-virtual + page browser 6 years ago
David Goodwin a05f87723f reformat 6 years ago
David Goodwin 28870e4b45 explode if there is no db connection made 6 years ago
David Goodwin b4564958a1 phpdoc; touch sqlite file before trying to use it in tests 6 years ago
8ctopus 4f2dab357c the directory the SQLite database is in must be writeable 6 years ago
hawk ceae3caa37 sqlite3 databases: check that the file exists and is writeable 6 years ago
David Goodwin 92d6259cd0 possibly fix PGSQL PDO DSN to be unicode aware; see #243 6 years ago
hawk c71dd25afa fix setup db_connect_with_errors PDO exceptions were not caught 6 years ago
David Goodwin 583b8958c7 psalm 6 years ago
David Goodwin 7838e85ff0 fix formatting 6 years ago
David Goodwin 5db463b35c improve docs 6 years ago
David Goodwin cef2ba5598 Merge remote-tracking branch 'origin/master' into feature-try-pdo 6 years ago
Luca e347b4677b
Fix for MySQL 8
The keyword ROW became reserved in MySQL 8.0.2
https://dev.mysql.com/doc/refman/8.0/en/keywords.html#keywords-8-0-detailed-R
6 years ago
David Goodwin 803e2342f8 fix psalm issues; reformat; rename new db functions 6 years ago
David Goodwin 1176c9ce78 reformat; fix some transition bugs 6 years ago
David Goodwin ea33d9951a try migrating to pdo 6 years ago
David Goodwin 8798a65a06 remove db_array() function (not in use); use Config::read_string(..) more 6 years ago
David Goodwin cdacb5697f improve formatting of error message; remove use of db_array (to be removed). 6 years ago
David Goodwin 2ea829eb7a fix postgresql compatability - see #227 6 years ago
David Goodwin b2e814967f try and get working under travis ... 6 years ago
David Goodwin 590c80f0bc add more unit tests; re-enable random_int warning in functions.inc.php for old php versions etc etc 6 years ago
David Goodwin e8acb609c2 reformat 6 years ago
David Goodwin 20b1eb842e fix sqlite display of password expired check for mailboxes 6 years ago
David Goodwin 1dfb03ea32 fix sqlite query for mailbox password_expiry 6 years ago
David Goodwin 4fcdba9cf4 run php-cs-fixer (code reforamt) 6 years ago
David Goodwin 19cda31849 remove psalm warnings from code; fix password_expiry behaviour when enabled/disabled on MySQL 6 years ago
David Goodwin 74002bbf57 psalm fixes 6 years ago
David Goodwin 7408a3b30a fix safepost doc 6 years ago
David Goodwin 69e234f668
Merge pull request #200 from doktoil-makresh/master
Support for password expiration, managed in PostFix Admin
6 years ago
David Goodwin 87472af5ba add Date header into smtp_from(...) function - see #203 6 years ago
David Goodwin b1795ab596 phpdoc 6 years ago
David Goodwin 1e158245d6 try and fix #30 - cope with timestamp and numeric field number comparison better for PostgreSQL. 6 years ago
David Goodwin a8b02cfc05 Default to default values 6 years ago
David Goodwin 77d1b6c2e7 rename sql fields to just have mailbox.password_expiry and domain.password_expiry 6 years ago
Damien Martins 8115d8d047 Reverting unexpected changes 6 years ago