Valery Kartel
d54754097f
Update AliasdomainHandler.php
2021-06-02 13:24:11 +03:00
Valery Kartel
ae0d9436b5
Update MailboxHandler.php
2021-06-02 13:13:40 +03:00
Valery Kartel
b075544c66
Update AdminpasswordHandler.php
2021-06-02 13:13:00 +03:00
David Goodwin
659b242b59
merge fix
2021-05-15 21:28:19 +01:00
David Goodwin
5a305bc830
allow vacation settings to include a time (but specify a time if one is not), this should stop us overwriting the time - see https://sourceforge.net/p/postfixadmin/discussion/676076/thread/5637ae3bc5/?limit=25#24a5
2021-05-13 16:16:22 +01:00
David Goodwin
8518d53906
merge postfixadmin_3.3 into master
2021-05-13 13:15:27 +01:00
David Goodwin
584e4ef41d
type hinting changes
2021-05-13 12:56:38 +01:00
Andrey Miroshnichenko
0ebb006888
Adds an ability to update password_expity field when user changes own password
2021-05-13 00:23:05 +03:00
David Goodwin
1a63ee6c5d
might fix tests
2021-05-11 22:05:36 +01:00
David Goodwin
179dd4c6e2
try and improve hashing, remove duplicate code, try and cope with the algorithm/method in $pw_db being different from the configured one; add tests
2021-05-11 21:56:48 +01:00
David Goodwin
543285a203
add SSHA format, add some specific courier algorithms, try and partially update docs
2021-05-09 21:31:53 +01:00
David Goodwin
858c0a0ecd
add in some @deprecated notifices
2021-05-08 21:56:05 +01:00
David Goodwin
71ee810891
try and implement more hash mechanisms - see e.g. https://github.com/postfixadmin/postfixadmin/issues/479 and https://github.com/postfixadmin/postfixadmin/issues/379
2021-05-08 21:47:45 +01:00
Sven Strickroth
74a12b4f0c
Add support for domain_postedit_script
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2021-05-08 18:27:44 +02:00
David Goodwin
af2cba2a6c
only update the modified field on update
2021-04-13 21:35:06 +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
Sven Seeberg
160fb32441
Change Login changePassword, fixes #456
...
* The db_udpate function already sets backticks around the table
name, which results and error name if the string passed as argument
for the table name already contains backticks.
Signed-off-by: Sven Seeberg <mail@sven-seeberg.de>
2021-02-19 08:58:08 +01:00
David Goodwin
9700a3a9c9
fix psalm : bool -> int
2021-02-18 21:19:56 +00:00
David Goodwin
c755e82a36
Merge branch 'postfixadmin_3.3'
2021-02-18 12:12:27 +00:00
David Goodwin
b2831d1241
psalm improvements
2021-02-17 21:29:18 +00:00
David Goodwin
237615502a
Merge remote-tracking branch 'origin/postfixadmin_3.3'
2021-01-27 09:29:57 +00:00
David Goodwin
e3269b62d9
fix formatting
2021-01-26 21:39:11 +00:00
David Goodwin
52933a6307
remove change to table_by_key() as the original bug has been found in Login
2021-01-26 21:06:15 +00:00
David Goodwin
92fd05cb5d
do not worry about escaping an object
2021-01-26 20:42:28 +00:00
David Goodwin
84ad0ebec7
perhaps better error logging if mailbox_postpassword_script fails
2021-01-25 22:04:04 +00:00
David Goodwin
336259957d
Merge remote-tracking branch 'origin/postfixadmin_3.3'
2021-01-25 21:58:31 +00:00
David Goodwin
7589326c15
Merge remote-tracking branch 'origin/postfixadmin_3.3'
2021-01-25 17:01:06 +00:00
David Goodwin
a442b7331d
hint for future people
2021-01-25 17:00:16 +00:00
David Goodwin
34e0367a0b
check if config option exists and do not require it is a string - see https://github.com/postfixadmin/postfixadmin/issues/437
2021-01-25 17:00:04 +00:00
David Goodwin
da7607c9c5
see #429 - check for some CONF keys before trying to use them
2021-01-23 16:55:41 +00:00
David Goodwin
dbfb1382fe
Merge remote-tracking branch 'origin/postfixadmin_3.3'
2021-01-22 19:50:07 +00:00
David Goodwin
59db09d337
add a Config::has($name) to check for the existance of a config value
2021-01-22 18:02:41 +00:00
David Goodwin
481c465712
merge e7e1ce9c28
to fix PostgreSQL tests
2021-01-19 19:24:08 +00:00
David Goodwin
e7e1ce9c28
fix postgresql test
2021-01-19 16:50:56 +00:00
David Goodwin
23cec95153
fix php8 moaning about string vs int
2021-01-18 20:49:49 +00:00
David Goodwin
e8acde751f
fix php8 moaning about string vs int
2021-01-18 20:46:11 +00:00
David Goodwin
dd7d94912b
fix psalm issue(s); fix incorrect variable; throw exception if mailbox_postpassword_script fails
2021-01-15 19:26:07 +00:00
David Goodwin
70bf59edc4
composer format; fix syntax issue; comment out code in model/Login which fails psalm check
2021-01-14 22:22:27 +00:00
David Goodwin
cb161a7cec
Merge pull request #421 from BotoX/master-crypt
...
Suport for dovecot mail-crypt-plugin via new mailbox_postpassword_script hook
2021-01-14 20:11:14 +00:00
David Goodwin
ff2a7c96d4
update changelog; try and improve tests
2021-01-14 17:07:55 +00:00
David Goodwin
79737bc049
reformat
2021-01-14 17:07:55 +00:00
David Goodwin
ab56724a15
add hash_equals call
2021-01-14 17:07:55 +00:00
David Goodwin
85960b7096
more Login pacrypt() exception handling - see https://github.com/postfixadmin/postfixadmin/issues/420
2021-01-14 17:07:55 +00:00
David Goodwin
0a55868736
require a password to be non-empty on login
2021-01-14 17:07:55 +00:00
David Goodwin
30e3132a34
wrap pacrypt() call with a try/catch to log/handle issues where an exception is thrown - see https://github.com/postfixadmin/postfixadmin/issues/420
2021-01-14 17:07:55 +00:00
David Goodwin
df75df08ec
update changelog; try and improve tests
2021-01-14 17:05:50 +00:00
David Goodwin
18a019690c
reformat
2021-01-14 11:26:04 +00:00
David Goodwin
2060422d9a
add hash_equals call
2021-01-14 11:16:31 +00:00
David Goodwin
8b1adbcf1f
more Login pacrypt() exception handling - see https://github.com/postfixadmin/postfixadmin/issues/420
2021-01-14 11:13:02 +00:00
David Goodwin
5827a12628
require a password to be non-empty on login
2021-01-13 22:46:33 +00:00
David Goodwin
72ded8494a
wrap pacrypt() call with a try/catch to log/handle issues where an exception is thrown - see https://github.com/postfixadmin/postfixadmin/issues/420
2021-01-13 22:44:09 +00:00
BotoX
c6ae3ea2f3
Suport for dovecot mail-crypt-plugin via new mailbox_postpassword_script hook.
...
Uses doveadm mailbox cryptokey on create user / password change to adjust user encryption key.
https://doc.dovecot.org/configuration_manual/mail_crypt_plugin/
2021-01-11 21:07:45 +01:00
David Goodwin
efb1897a4f
fix for CLI not behaving - see #411
2021-01-10 10:58:16 +00:00
David Goodwin
431d885e4e
see: //github.com/postfixadmin/postfixadmin/issues/410 - ignore theme_css if it points to css/default.css; drop css/default.css
2021-01-09 19:43:43 +00:00
David Goodwin
f79351aaee
composer format
2021-01-08 15:53:55 +00:00
David Goodwin
c7850b78eb
fix bootstrap theme for users/ urls; make some other links use https.
2021-01-07 20:34:06 +00:00
Christian Boltz
6663a35bdb
PFAHandler: fix backwards compability for store()
...
... and beforestore() and storemore()
Custom child classes might use the old names, and we should keep them
working (with a deprecation notice in the error log).
2021-01-06 21:18:53 +01:00
David Goodwin
16531534a3
add @deprecated phpdoc
2020-10-02 20:57:55 +01:00
David Goodwin
d07d115bd5
fix names ....
2020-10-02 20:56:45 +01:00
David Goodwin
712939eb88
maintain backwards compatability with PFAHAndler::{store(),storemore(),beforestore()}
2020-09-28 21:51:57 +01:00
David Goodwin
b8fa60bb8a
more type hints / psalm fixes
2020-09-28 20:33:54 +01:00
David Goodwin
d83b287297
rejig smarty
2020-09-28 20:33:21 +01:00
David Goodwin
8be966d0bb
allow the template to be destroyed
2020-09-27 10:52:19 +01:00
David Goodwin
e4d5e4bee0
reformat
2020-09-26 09:58:16 +01: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
f091948381
move password check and recovery code generation out of PFAHandlers and into a Login class
2020-09-25 21:32:03 +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
3d46ec7959
revert: 1d1960a476
- see https://github.com/postfixadmin/postfixadmin/issues/384
2020-09-12 21:04:18 +01:00
David Goodwin
12f68a6e3a
composer format time
2020-08-13 15:27:47 +01:00
David Goodwin
5bd5bdc25b
merge https://github.com/postfixadmin/postfixadmin/pull/375 add unit test
2020-08-13 15:00:22 +01:00
GermanCoding
fe3e9e2702
Disallow alias that points to itself ( fixes #358 )
...
Based on an older commit, but this time done right. This change prevents any user-defined aliases
that point to themselves, because such aliases are not supported by Postfix and cause mail
delivery errors.
2020-08-07 22:15:45 +02:00
David Goodwin
c3a8875ca6
psalm fixes
2020-08-06 21:10:30 +01:00
David Goodwin
89aebea61d
Revert "Disallow aliases that point to themselves (fixes postfixadmin/postfixadmin/issues/358)"
...
This reverts commit c3d5b26740
.
2020-08-06 20:28:20 +01:00
GermanCoding
c3d5b26740
Disallow aliases that point to themselves (fixes postfixadmin/postfixadmin/issues/358)
...
See github.com/postfixadmin/postfixadmin/issues/358 for details
2020-08-06 16:12:04 +01:00
David Goodwin
e8f27969a3
psalm fixes
2020-06-21 16:44:43 +01:00
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 - 844840c6a8 (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
Michael Krieger
101490111a
Update AliasHandler.php
2020-03-05 18:06:13 -05:00
Michael Krieger
02e238cf30
Add a local-only domain check
2020-03-05 17:47:04 -05: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