Commit Graph
361 Commits
Author SHA1 Message Date
David Goodwin bbf41c7acc formatting 2020-06-02 12:59:47 +01:00
David Goodwin 864065cd37 fix MailboxHandler -> adding mailbox with empty quota field 2020-05-15 20:30:31 +01:00
David Goodwin 85e15790bb should fix: #351 2020-05-02 19:08:47 +01:00
David Goodwin df9a400ea2 remove debug stuff 2020-04-22 09:37:31 +01:00
David Goodwin fd48714615 fix issue reported with __LANG.$var - https://github.com/postfixadmin/postfixadmin/commit/844840c6a8e90098dd83dccb88ca96317863de4b#commitcomment-38653465 2020-04-22 09:34:25 +01:00
David Goodwin 844840c6a8 simplify Config use; drop support for dotty name notation which we are not using 2020-04-14 21:26:01 +01:00
David Goodwin e4158d6d7e psalm fix 2020-04-14 21:25:36 +01:00
David Goodwin ffc7787b76 psalm fix 2020-04-14 21:09:18 +01:00
David Goodwin d81363541a fix psalm 2020-03-18 21:03:27 +00:00
David Goodwin 338fb8c564 Fix quota storage; see https://github.com/postfixadmin/postfixadmin/issues/342 2020-03-18 14:36:53 +00:00
David Goodwin d3295a59bb format 2020-03-16 14:10:05 +00:00
David Goodwin d540d904db cast mailbox['quota'] to be integer.
see:  https://github.com/postfixadmin/postfixadmin/issues/342
2020-03-16 13:11:51 +00:00
David Goodwin 3303f25bcc add some php 7+ array type hints. 2020-03-16 13:11:15 +00:00
David Goodwin 48e236ffc0 use hash_equals for login - see: https://github.com/postfixadmin/postfixadmin/issues/58 2020-03-14 22:04:54 +00:00
David Goodwin fefe3f7df5 default domain_quota_default to -1 if not specified - see https://github.com/postfixadmin/postfixadmin/issues/299 2020-03-14 21:08:50 +00:00
David Goodwin d2b8f7ac15 might fix: https://github.com/postfixadmin/postfixadmin/issues/306 2020-03-13 22:03:40 +00:00
David Goodwin 30f97c97ee avoid: A non-numeric value encountered errors from no quota being specified 2020-03-02 09:55:13 +00:00
David Goodwin 9dfc866edd composer format 2020-02-23 18:59:07 +00:00
David Goodwin 95d92a2345 psalm fix: rewrite to avoid php error (@) suppression 2020-02-12 21:33:55 +00:00
Christian Boltz bee61f329b Only show password expiration if enabled in config 2020-02-12 17:12:19 +01:00
David Goodwin 1ad184641d php7.4 / psalm fixes 2020-01-31 16:30:46 +00:00
David Goodwin bcae218cbb composer format time 2019-10-19 21:36:27 +01:00
David Goodwin 87824ef970 psalm fixes/workarounds; require PHP 5.6+ 2019-10-19 20:51:05 +01:00
David Goodwin 4aa3110712 phpdoc/psalm fixes 2019-10-19 20:01:25 +01:00
David Goodwin 2742849e7b reformat 2019-09-17 21:06:00 +01:00
David Goodwin 7965a83aff tighten psalm checks even more 2019-09-17 21:05:08 +01:00
David Goodwin 034a50836c tighten psalm checks 2019-09-17 20:50:42 +01:00
David Goodwin f7c7e35b34 fix formatting 2019-09-15 11:42:21 +01:00
David Goodwin 80418e6412 try and avoid hitting : https://github.com/postfixadmin/postfixadmin/issues/51 2019-09-14 21:19:39 +01:00
David Goodwin 9cd7dac187 initial attempt at trying to return an exit value within the cli 2019-09-14 20:09:56 +01:00
David Goodwin 34cf66110e see https://github.com/postfixadmin/postfixadmin/issues/251 - avoid things breaking if imap_open is not present 2019-09-05 18:10:07 +01:00
David Goodwin 296fc2f48e silence psalm error - cast $show_password_fields to an int in model/MailboxHandler.php lines 33/34 2019-08-13 08:53:43 +01:00
David Goodwin 8b19ef21cf add default value for password_expiry (default to one year)
should fix: https://github.com/postfixadmin/postfixadmin/issues/280
2019-07-16 19:01:48 +01:00
David Goodwin c53d17fff7 support TRUE orFALSE strings just incase 2019-07-12 10:53:27 +01:00
Felix Ableitner 600248e955 Add option to use smtp password when sending admin emails (fixes #272) 2019-07-02 13:41:58 +02:00
David Goodwin 651688c802 if we are generating passwords, there will only be one password value; so reduce the fields we check before deciding whether to update password_expiry - see https://github.com/postfixadmin/postfixadmin/issues/266 2019-06-11 21:05:53 +01:00
David Goodwin 1d1960a476 if CONF['generate_password'] == 'YES' then do not display password fields
Given we autogenerate a password ....
2019-06-11 21:03:39 +01:00
David Goodwin 3ff2436f2f try a bit harder to avoid non-numeric argument issues with $multiplier
(see https://github.com/postfixadmin/postfixadmin/issues/266 )
2019-06-10 20:13:22 +01:00
David Goodwin 8e2e4eb189 run: composer format 2019-06-08 20:38:54 +01:00
David Goodwin 03b9483204 default to providing a password_expiry datetime value - even if password_expiry is turned off - this should fix https://github.com/postfixadmin/postfixadmin/issues/280 2019-06-08 20:34:07 +01:00
David Goodwin 3322b43bb6 see: https://github.com/postfixadmin/postfixadmin/issues/282 - try and ensure local_part contains an @ on creating a mailbox 2019-06-08 20:05:33 +01:00
David Goodwin 71402e9051 comment 2019-04-26 11:46:57 +01:00
David Goodwin 045a19ae33 re-format 2019-02-27 14:44:20 +00:00
David Goodwin 7ed57a0cda assume the db updates work if no exception was thrown 2019-02-27 14:44:20 +00:00
David Goodwin 9024dddf46 move password_expiration code into the MailboxHandler. 2019-02-27 14:44:20 +00:00
David Goodwin df99e66b2d try and stop "A non-numeric value encountered in ..."; see #239 2019-02-27 14:44:20 +00:00
David Goodwin 28e687ff5b sqlite does not support NOW(), use a string comparison 2019-02-18 21:11:17 +00:00
Christian Boltz 5bc85bec44 fix error message in Config::read_array(() 2019-01-28 00:48:05 +01:00
David Goodwin 570972944d Merge remote-tracking branch 'origin/master' into feature-try-pdo 2019-01-08 13:38:38 +00:00
David Goodwin 5d47b85b9d remove attribute that is in parent class 2019-01-08 13:22:44 +00:00