David Goodwin
8596eaddd0
only update the modified field on update
5 years ago
Sven Seeberg
7fd3d30418
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>
5 years ago
David Goodwin
b2831d1241
psalm improvements
5 years ago
David Goodwin
e3269b62d9
fix formatting
5 years ago
David Goodwin
52933a6307
remove change to table_by_key() as the original bug has been found in Login
5 years ago
David Goodwin
92fd05cb5d
do not worry about escaping an object
5 years ago
David Goodwin
a442b7331d
hint for future people
5 years ago
David Goodwin
34e0367a0b
check if config option exists and do not require it is a string - see https://github.com/postfixadmin/postfixadmin/issues/437
5 years ago
David Goodwin
da7607c9c5
see #429 - check for some CONF keys before trying to use them
5 years ago
David Goodwin
59db09d337
add a Config::has($name) to check for the existance of a config value
5 years ago
David Goodwin
481c465712
merge e7e1ce9c28 to fix PostgreSQL tests
5 years ago
David Goodwin
23cec95153
fix php8 moaning about string vs int
5 years ago
David Goodwin
df75df08ec
update changelog; try and improve tests
5 years ago
David Goodwin
18a019690c
reformat
5 years ago
David Goodwin
2060422d9a
add hash_equals call
5 years ago
David Goodwin
8b1adbcf1f
more Login pacrypt() exception handling - see https://github.com/postfixadmin/postfixadmin/issues/420
5 years ago
David Goodwin
5827a12628
require a password to be non-empty on login
5 years ago
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
5 years ago
David Goodwin
efb1897a4f
fix for CLI not behaving - see #411
5 years ago
David Goodwin
431d885e4e
see: //github.com/postfixadmin/postfixadmin/issues/410 - ignore theme_css if it points to css/default.css; drop css/default.css
5 years ago
David Goodwin
dd2f5069ff
composer format
5 years ago
David Goodwin
f79351aaee
composer format
5 years ago
David Goodwin
c7850b78eb
fix bootstrap theme for users/ urls; make some other links use https.
5 years ago
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).
5 years ago
David Goodwin
16531534a3
add @deprecated phpdoc
5 years ago
David Goodwin
d07d115bd5
fix names ....
5 years ago
David Goodwin
712939eb88
maintain backwards compatability with PFAHAndler::{store(),storemore(),beforestore()}
5 years ago
David Goodwin
b8fa60bb8a
more type hints / psalm fixes
5 years ago
David Goodwin
d83b287297
rejig smarty
5 years ago
David Goodwin
8be966d0bb
allow the template to be destroyed
5 years ago
David Goodwin
e4d5e4bee0
reformat
5 years ago
David Goodwin
ce8c636eb5
rejig Login::__construct() as only one arg is really needed
5 years ago
David Goodwin
7107e17c4c
composer format
5 years ago
David Goodwin
b868f950bf
refactor Login stuff out of Handler classes into Login... add tests
5 years ago
David Goodwin
f091948381
move password check and recovery code generation out of PFAHandlers and into a Login class
5 years ago
David Goodwin
3c7da4f3b8
Refactor some methods
PFAHandler::store() -> PFAHandler::save();
PFAHandler::storemore() -> PFAHandler::postSave();
PFAHandler::beforestore() -> PFAHandler::preSave();
5 years ago
David Goodwin
3d46ec7959
revert: 1d1960a476 - see https://github.com/postfixadmin/postfixadmin/issues/384
6 years ago
David Goodwin
12f68a6e3a
composer format time
6 years ago
David Goodwin
5bd5bdc25b
merge https://github.com/postfixadmin/postfixadmin/pull/375 add unit test
6 years ago
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.
6 years ago
David Goodwin
c3a8875ca6
psalm fixes
6 years ago
David Goodwin
89aebea61d
Revert "Disallow aliases that point to themselves (fixes postfixadmin/postfixadmin/issues/358)"
This reverts commit c3d5b26740 .
6 years ago
GermanCoding
c3d5b26740
Disallow aliases that point to themselves (fixes postfixadmin/postfixadmin/issues/358)
See github.com/postfixadmin/postfixadmin/issues/358 for details
6 years ago
David Goodwin
e8f27969a3
psalm fixes
6 years ago
David Goodwin
bbf41c7acc
formatting
6 years ago
David Goodwin
864065cd37
fix MailboxHandler -> adding mailbox with empty quota field
6 years ago
David Goodwin
85e15790bb
should fix : #351
6 years ago
David Goodwin
df9a400ea2
remove debug stuff
6 years ago
David Goodwin
fd48714615
fix issue reported with __LANG.$var - 844840c6a8 (commitcomment-38653465)
6 years ago
David Goodwin
844840c6a8
simplify Config use; drop support for dotty name notation which we are not using
6 years ago