David Goodwin
bed0300fae
fix tests (pacrypt/{md5raw} etc)
3 years ago
David Goodwin
a349c75f53
rmeove var_dump
4 years ago
David Goodwin
35486a2ca9
remove dead code
4 years ago
Davide Beatrici
626bd43def
Add support for implicit TLS, replace "smtp_sendmail_tls" with "smtp_type"
For reference: https://datatracker.ietf.org/doc/html/rfc8314
Please note that this only applies to the "send email" feature.
In the future we should implement it for the "fetch email" one too.
4 years ago
David Goodwin
e0c9939f88
use _pacrypt_php_crypt
4 years ago
David Goodwin
57f9ed5ff3
see #556 - try this instead
4 years ago
David Goodwin
540b32f1a0
probable fix for #556 - see if CONF[site_url] is a string before trying to use it
4 years ago
David Goodwin
5a8f334b45
fix mysql connection string - see #553
4 years ago
David Goodwin
03ab100b4a
composer format
4 years ago
David Goodwin
f8c8dcf520
see - https://github.com/postfixadmin/postfixadmin/issues/549 - use $CONF["database_port"] when connecting to MySQL
4 years ago
David Goodwin
ac13219894
improve test coverage / compatability
4 years ago
David Goodwin
f1b41e87fa
composer format
4 years ago
David Goodwin
309b4a84aa
get legacy test case to pass
4 years ago
David Goodwin
0d08ac418a
see https://github.com/postfixadmin/postfixadmin/issues/547
4 years ago
Sethox
6bb8bc6fa0
Revision to my previous suggestion
This grants "if port is defined" in the right context.
4 years ago
Sethox
47b1eecdf6
Minor update: add port to mysql/mariadb
This change is needed be able to use $CONF['database_host'] (custom port) for mysql/mariadb
4 years ago
David Goodwin
36593fafe7
remove extra semi-colon - thanks to @PF4Public / #524
4 years ago
David Goodwin
25ac89f6a7
see https://github.com/postfixadmin/postfixadmin/issues/523 - improve randomness when creating the PFA_token field; reported by @michaellrowley via huntr.dev.
4 years ago
David Goodwin
1be8386e58
capitalise mechanisms
4 years ago
David Goodwin
8ca6f718b2
composer format
4 years ago
David Goodwin
d707ab8355
iniital inclusion of the postfixadmin/password-hashing library.
4 years ago
David Goodwin
8518d53906
merge postfixadmin_3.3 into master
5 years ago
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
5 years ago
David Goodwin
858c0a0ecd
add in some @deprecated notifices
5 years ago
David Goodwin
3853561157
use PACrypt::hash(...)
5 years ago
Sven Strickroth
51eed5e2b6
Cleanup
Signed-off-by: Sven Strickroth <email@cs-ware.de>
5 years ago
Sven Strickroth
3cde7af742
UTF8 is no real UTF8 in MySQL, on needs to use utf8mb4
This allows to use emojis in vacation mails.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
5 years ago
David Goodwin
2edabc3e03
phpcs insists on some brace changes
5 years ago
David Goodwin
fbdc6ba029
composer format
5 years ago
David Goodwin
962e80c40c
improve typehints on db_insert (requires php7)
5 years ago
David Goodwin
60ff94e3c1
see #469 - try and make sure we do update timestamp fields
They may not be present in our $values array, but update them anyway.
5 years ago
David Goodwin
8815b07bba
improve phpdocs
5 years ago
David Goodwin
1a93247018
improve phpdocs
5 years ago
David Goodwin
0fc3765528
re-format
5 years ago
David Goodwin
c87d8a8319
split db_connect() up to separate out db_connection_string() (which returns a PDO DSN string)
5 years ago
David Goodwin
d9813d4cf8
see #446 - try and detect site url but allow for $CONF['site_url'] override to be used.
5 years ago
David Goodwin
aef69b53a9
log parameters when it fails
5 years ago
David Goodwin
dcf01eafc3
more english
5 years ago
David Goodwin
8ebb985fc7
split db_connect() up to separate out db_connection_string() (which returns a PDO DSN string)
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
bcf1f8c7e4
move min_password_length check into a conditional Config::has() check first
5 years ago
David Goodwin
da7607c9c5
see #429 - check for some CONF keys before trying to use them
5 years ago
David Goodwin
d81be5640d
try and make config reading a bit more robust - see https://github.com/postfixadmin/postfixadmin/issues/429
5 years ago
David Goodwin
6c3ff42036
make sure we do not double quote mysql table names somehow
5 years ago
David Goodwin
486a166edd
make sure we do not double quote mysql table names somehow
5 years ago
David Goodwin
910490e83f
see https://github.com/postfixadmin/postfixadmin/issues/422 - not all variants of MySQL have RANDOM_BYTES()
5 years ago
David Goodwin
189bd583a0
see https://github.com/postfixadmin/postfixadmin/issues/422 - not all variants of MySQL have RANDOM_BYTES()
5 years ago
David Goodwin
5151b860e7
add @todo , default MySQL ENCRYPT() to have a random salt, SHA512 format
5 years ago
David Goodwin
113ab02f54
reformat; add to CHANGELOG
5 years ago
David Goodwin
0096a41693
format
5 years ago