0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
Commit Graph

259 Commits

Author SHA1 Message Date
David Goodwin
23db330473 message seems unnecessary if you have logged in 2021-01-28 22:28:41 +00:00
David Goodwin
4063ca151c try and make setup.php more useful (error detection, logging etc) 2021-01-28 22:18:09 +00:00
David Goodwin
237615502a Merge remote-tracking branch 'origin/postfixadmin_3.3' 2021-01-27 09:29:57 +00:00
David Goodwin
dd9b08f3a6 domain_selected -> reduce default down to '' rather than 'invalid' 2021-01-26 20:42:38 +00:00
David Goodwin
c61939ce5c bootstrap 3.x does not have a .ml-x or .mr-x class, so create something for now so i can move buttons apart a little 2021-01-26 19:25:31 +00:00
David Goodwin
34678ccb4d bootstrap 3.x does not have a .ml-x or .mr-x class, so create something for now so i can move buttons apart a little 2021-01-26 19:07:06 +00:00
David Goodwin
7cf3c4c9bd merge postfixadmin 3.3 back into master 2021-01-21 20:57:30 +00:00
David Goodwin
b4a475c185 see: https://github.com/postfixadmin/postfixadmin/issues/432 - add/fix missing template variable "domain_selected" 2021-01-21 20:52:28 +00:00
David Goodwin
7f8a3d4bde also fix password-change include path - see https://github.com/postfixadmin/postfixadmin/issues/430 2021-01-21 13:57:31 +00:00
David Goodwin
829b27fc20 re-fix password-change 2021-01-21 13:54:53 +00:00
David Goodwin
e10f6f3df5 merge postfixadmin_3.3 into master 2021-01-21 13:52: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
dd86dcad30 fix forget-password (+ themeing), see #427 2021-01-19 09:19:59 +00:00
David Goodwin
95b431599d fix forget-password (+ themeing), see #427 2021-01-19 09:19:30 +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
d4c19506b3 rejig setup.php so it displys error messages if admin creation fails etc 2021-01-14 17:07:55 +00:00
David Goodwin
79737bc049 reformat 2021-01-14 17:07:55 +00:00
David Goodwin
61585e8b02 do not lose login error for users/ - see https://github.com/postfixadmin/postfixadmin/issues/420 2021-01-14 17:07:55 +00:00
David Goodwin
08e4c35141 Fix for https://github.com/postfixadmin/postfixadmin/issues/418 2021-01-14 17:07:55 +00:00
David Goodwin
0ca76d82f5 indent 2021-01-14 17:07:55 +00:00
David Goodwin
aa674aa233 be more strict about the format of an obsolete setup_password 2021-01-14 17:07:55 +00:00
David Goodwin
391d9a0f57 rejig setup.php so it displys error messages if admin creation fails etc 2021-01-14 16:44:10 +00:00
David Goodwin
18a019690c reformat 2021-01-14 11:26:04 +00:00
David Goodwin
24eb45be92 do not lose login error for users/ - see https://github.com/postfixadmin/postfixadmin/issues/420 2021-01-14 11:22:53 +00:00
David Goodwin
89940dd6ab Fix for https://github.com/postfixadmin/postfixadmin/issues/418 2021-01-13 22:26:51 +00:00
David Goodwin
1ac1eb07d5 indent 2021-01-13 10:52:15 +00:00
David Goodwin
0f2aefe471 be more strict about the format of an obsolete setup_password 2021-01-13 09:26:32 +00:00
David Goodwin
5d77e3514b try and detect old setup_password and output appropriate message on setup.php 2021-01-12 22:31:05 +00:00
David Goodwin
d80d3573f1 format 2021-01-12 22:15:28 +00:00
David Goodwin
a20f05ca71 try and fix vacation editing etc - see https://github.com/postfixadmin/postfixadmin/issues/416 2021-01-12 22:08:35 +00:00
David Goodwin
ea7ecb113d better wording as we are using PDO 2021-01-11 21:41:19 +00:00
David Goodwin
6940210402 code already depends on php 7.0 return types, so tidy up setup.php to not allow php5.x; remove setup check for phar as this is not required with php 7.0+ 2021-01-11 21:35:54 +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
Christian Boltz
c2571694d1
Drop now unused users/css/default.css 2021-01-11 20:57:04 +01:00
David Goodwin
6b2fa8e607 see: https://github.com/postfixadmin/postfixadmin/issues/415 - fix setup page to use password type field - thanks @efelon 2021-01-11 13:01:37 +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
c7850b78eb fix bootstrap theme for users/ urls; make some other links use https. 2021-01-07 20:34:06 +00:00
Christian Boltz
4f0e41c4e2
delete unused calendar js, css and images 2021-01-07 20:54:47 +01:00
Christian Boltz
8b6ad23dbf
setup.php: load bootstrap.min.css locally
... instead of using maxcdn.bootstrapcdn.com
2021-01-07 20:23:23 +01:00
Christian Boltz
e38174abf4
Drop unused bootstrap 3.3.7 2021-01-07 20:19:35 +01:00
Christian Boltz
2c6968b805
use a local copy of jquery
... instead of loading it from code.jquery.com
2021-01-07 20:18:15 +01:00
Christian Boltz
9d81facf32
fix typos in setup.php 2021-01-06 13:03:21 +01:00
David Goodwin
d391847ed9 manual merge of fix from https://github.com/postfixadmin/postfixadmin/issues/404
(try and filter CSV export lists to the current selected domain)
2020-12-24 10:46:07 +00:00
David Goodwin
a2dd768858 reformat 2020-12-23 16:24:41 +00:00
David Goodwin
4a77e93984 drop pointless text 2020-12-09 23:00:00 +00:00
David Goodwin
7545005426 rejig setup.php; retheme with bootstrap; hide sensitive info until someone has logged in (see #402) 2020-12-09 22:53:29 +00:00
David Goodwin
897e57d403 update bootstrap to v3.4.1 2020-12-09 22:52:21 +00:00
David Goodwin
92a7042ba1 fix typo checks 2020-11-09 21:56:08 +00:00
David Goodwin
2b33e8f3c3 remove conditional; should be unnecessary 2020-11-09 21:50:17 +00:00
David Goodwin
750838d7f7 psalm fixes; make safepost()/safeget() return strings 2020-11-09 21:40:52 +00:00
David Goodwin
b7afe73502 fix detection of postgresql pdo extension 2020-11-09 21:15:06 +00:00
David Goodwin
529bdc1a25 Merge remote-tracking branch 'origin/master' into feature-refactor-login-etc 2020-10-14 19:56:11 +01:00
David Goodwin
b8fa60bb8a more type hints / psalm fixes 2020-09-28 20:33:54 +01:00
David Goodwin
a3386ee8f7 change alias/mailbox deletion to be a POST request 2020-09-27 20:41:25 +01:00
Christian Boltz
6a82063f41
Remove white background around postbox
... so that it better fits on the light grey background in the bootstrap
theme.
2020-09-27 19:30:35 +02:00
David Goodwin
f6f62180e8 remove some global variables 2020-09-27 11:02:58 +01:00
David Goodwin
8bfe9fe668 Rejig PFASmarty, so it becomes a singleton accessible to the various 'controllers'.
(PFASmarty::getInstance() ... stops a global variable at least).
2020-09-27 10:49:58 +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
d7fa33a3ed s/store/save/g 2020-09-25 21:43:34 +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
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
ca24ff8300 perhaps improve logging - see : https://github.com/postfixadmin/postfixadmin/issues/364 2020-06-15 17:12:42 +01:00
David Goodwin
3cd62f9f4f update to phpunit v8, try changing coveralls library, update github action 2020-04-14 21:03:10 +01:00
David Goodwin
eea72e0019 check for PDO modules in setup.php, not old style functions 2020-04-10 22:30:48 +01:00
David Goodwin
8754af58cb fix undefined variables (psalm) 2020-03-12 20:45:51 +00:00
David Goodwin
2a1383ee2e give the browser a hint that we want a new password for new admin accounts - see https://github.com/postfixadmin/postfixadmin/issues/331 2020-02-23 20:11:42 +00:00
David Goodwin
6a10c869e5 allow existance of pdo for us to proceed with setup 2020-02-22 09:21:22 +00:00
David Goodwin
ec2fbfd87f skip this query - for a new database it will run before the domain table has been created and just error 2020-02-12 21:19:49 +00:00
David Goodwin
fd35dada38 try and be consistent with MySQL table types/collations - see https://github.com/postfixadmin/postfixadmin/issues/327 2020-02-12 21:15:04 +00:00
David Goodwin
80a0faa633 specify a default table collation / charset for MySQL - might help fix https://github.com/postfixadmin/postfixadmin/issues/327 2020-02-11 20:02:34 +00:00
David Goodwin
036245063e drop references to magic_quotes; see: https://github.com/postfixadmin/postfixadmin/pull/325 2020-02-10 11:26:23 +00: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
ccd74cc506
Merge pull request #308 from dsamoshin/icon_ru
Favicon config and ru_lang
2019-10-19 19:23:27 +01:00
gotty
13549cea0f Favicon config and ru_lang:
1. Favicon configuration of the project:
  a. Fixed incorrect link to favicon from the subfolder /users/
  b. Added ability to set favicon via config
2. Completed translation of all string constants into Russian language.
2019-10-19 18:33:18 +03:00
David Goodwin
b8d7c0513f psalm fix 2019-10-17 20:03:47 +01:00
David Goodwin
e20b2cacdb psalm fix 2019-10-17 20:03:38 +01:00
David Goodwin
7360407b73 see: https://github.com/postfixadmin/postfixadmin/issues/302 - check if the session key exists; and if not show something that may help 2019-09-25 13:47:40 +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
34e6f7829e tighten psalm checks; fix errors 2019-09-17 20:55:14 +01:00
David Goodwin
6a89b9a363 composer format 2019-08-13 09:24:30 +01:00
David Goodwin
bee5fcbe24 improve setup form - only display "add superadmin account" if setup password is configured; change verbs depending on context etc; see https://github.com/postfixadmin/postfixadmin/issues/263 2019-08-13 09:19:22 +01:00
David Goodwin
fa27c7c8b7 reindent/reformat 2019-08-13 09:00:21 +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
8e2e4eb189 run: composer format 2019-06-08 20:38:54 +01:00
David Goodwin
95429a6963 reindent, remove comment 2019-06-08 20:05:59 +01:00
David Goodwin
d64eadf609 try and stop $_SERVER[REQUEST_SCHEME] not being defined - see https://github.com/postfixadmin/postfixadmin/issues/279 2019-06-07 16:28:00 +01:00
David Goodwin
cc19870923 drop function: db_connect_with_errors(); just throw from db_connect() if something goes wrong 2019-06-07 16:23:34 +01:00
David Goodwin
06513c2a14 remove quotes around table name which is not necessary as table_by_key does this 2019-02-16 19:46:31 +00:00
David Goodwin
fe48b35cfd split multiple queries into single ones to keep pdo/prepared statements happy 2019-02-15 21:59:11 +00:00
David Goodwin
17a420152c use pdo/prepared statement for list-virtual + page browser 2019-02-15 21:33:55 +00:00
David Goodwin
730a05cdd3 phpcs fix 2019-02-12 15:51:56 +00:00
David Goodwin
ed99a46ec4 log if no mechanisms were used for password recovery 2019-02-12 13:35:34 +00:00
David Goodwin
db4aecd23c typo fix 2019-02-12 13:29:18 +00:00
8ctopus
5528d8be30 added: line break so $error_text is on its own line 2019-02-10 11:04:04 +05:00
Christian Boltz
acf20bbc9e
move comments to the beginning of upgrade.php 2019-01-28 00:47:24 +01:00
David Goodwin
66747337f9 fix formatting 2019-01-16 10:31:16 +00:00
David Goodwin
7f8fd5ec1a Merge branch 'master' into feature-try-pdo 2019-01-16 09:23:29 +00:00
David Goodwin
83a4ee39b0 more phpdoc 2019-01-16 09:23:09 +00:00
David Goodwin
26d769740c silence some psalm warnings 2019-01-16 09:19:04 +00:00
David Goodwin
e9d12bf918 silence some psalm warnings 2019-01-16 09:17:56 +00:00
David Goodwin
6225899863 Merge remote-tracking branch 'origin/master' into feature-try-pdo 2019-01-11 17:05:52 +00:00
David Goodwin
e6666e0af0 attempt to improve installation instructions 2019-01-10 06:56:19 +00:00
David Goodwin
570972944d Merge remote-tracking branch 'origin/master' into feature-try-pdo 2019-01-08 13:38:38 +00:00
David Goodwin
18312a8aaa formatting... 2019-01-07 22:02:04 +00:00
David Goodwin
cc079b773f fix formatting 2019-01-07 21:58:14 +00:00
David Goodwin
020343999a
Merge pull request #221 from SuperVirus/fetchmail_different_source_port
Allow different port for fetchmail
2019-01-07 21:56:28 +00:00
David Goodwin
98536f03e8 fix sqlite upgrade check; remove test database between runs; ignore lib/array_column.php from linting 2019-01-06 21:39:54 +00:00
David Goodwin
803e2342f8 fix psalm issues; reformat; rename new db functions 2019-01-06 21:32:58 +00:00
David Goodwin
1176c9ce78 reformat; fix some transition bugs 2019-01-06 21:32:58 +00:00
David Goodwin
ea33d9951a try migrating to pdo 2019-01-06 21:32:58 +00:00
hawk
51320919fc add warning on setup over http connection 2019-01-05 18:56:31 +05:00
David Goodwin
78276534d9 remove error log prefix; use db_mysql 2019-01-03 19:36:40 +00:00
David Goodwin
8a59c9548a reformat 2019-01-01 20:39:41 +00:00
David Goodwin
e8eea39b9d reformat; try and persuade people to move off use of "mysql" (to mysqli); add php version warning 2019-01-01 20:39:41 +00:00
David Goodwin
cdacb5697f improve formatting of error message; remove use of db_array (to be removed). 2019-01-01 19:24:04 +00:00
David Goodwin
5441295e25 phpcs? 2018-12-29 21:53:59 +00:00
David Goodwin
b2e814967f try and get working under travis ... 2018-12-29 21:45:12 +00:00
David Goodwin
20b1eb842e fix sqlite display of password expired check for mailboxes 2018-12-28 19:57:21 +00:00
David Goodwin
4fcdba9cf4 run php-cs-fixer (code reforamt) 2018-12-28 19:31:43 +00:00
David Goodwin
19cda31849 remove psalm warnings from code; fix password_expiry behaviour when enabled/disabled on MySQL 2018-12-28 19:27:33 +00:00
David Goodwin
59dc05d746 use newer method (return type is consistent) 2018-12-28 19:15:38 +00:00
David Goodwin
166574efae add {IF_NOT_EXISTS} for sqlite tables - see #225 2018-12-28 13:08:59 +00:00
David Goodwin
74002bbf57 psalm fixes 2018-12-27 21:43:11 +00:00
David Goodwin
8cf7947f15 move function into the only place it is used 2018-12-27 13:07:31 +00:00
David Goodwin
cecfe6b215 see #217 - should solve looking in /etc/postfixadmin ... 2018-12-27 13:02:55 +00:00
Christoph 'SuperVirus' Heitkamp
d35e66808b Allow different port for fetchmail 2018-12-17 13:29:07 +01:00
Christian Weiske
3960f6fdad Change login failure message to show the login type (admin or user) 2018-12-16 10:31:08 +01:00
David Goodwin
77d1b6c2e7 rename sql fields to just have mailbox.password_expiry and domain.password_expiry 2018-08-28 21:19:56 +01:00
David Goodwin
a455916a6b add password expiry stuff to the db schema upgrade script 2018-08-28 21:15:45 +01:00
Damien Martins
e786609aa9 Adding support for password expiration. Please read README.password_expiration for more details 2018-08-17 16:07:14 +02:00
David Goodwin
ba14535489
Merge pull request #172 from abonanni/bootstrap
Bootstrap Integration
2018-07-10 10:29:13 +01:00
David Goodwin
a981ff8172 list.php csv export: implode array values, suppress fields with empty label after trimming (html status) 2018-07-10 09:13:10 +01:00
Christian Boltz
77670f36f6
revert CSV separator to ";"
This reverts c5c42cfbe8 ("remove custom
field separator; just go with the default php behaviour").

That change didn't improve anything on
https://sourceforge.net/p/postfixadmin/bugs/386/ - it "just" changed the
CSV file format which might break existing workflows and/or tools of our
users.
2018-07-10 03:20:38 +02:00
David Goodwin
39bb2dbcd6 see remove outdated doc links - see #191 2018-07-09 12:51:24 +01:00
David Goodwin
c5c42cfbe8 remove custom field separator; just go with the default php behaviour 2018-07-09 12:50:03 +01:00
David Goodwin
532eb09f1f possible readability improvement 2018-06-18 21:42:52 +01:00
David Goodwin
299735773e fix phpdoc 2018-06-18 21:34:42 +01:00
David Goodwin
b6f75c9c2c try and require Phar extension through setup if we are using php_crypt and PHP version < 7 2018-06-10 21:23:58 +01:00
David Goodwin
1f643a052f see #185 - try putting the session_ recreation stuff in an else { ... } 2018-06-01 15:50:33 +01:00
David Goodwin
6100ca4cf9 try and fix #177 (add missing fields to sqlite db) 2018-05-25 09:59:31 +01:00
David Goodwin
9c7f60fa76 possible fix for sqlite schema/upgrade issues; see #177 and and #176 2018-05-23 22:10:56 +01:00
root
fb3e968cfc Bootstrap template integration 2018-05-04 13:25:34 +02:00
Christian Boltz
d2588a4de2
Fix phpcs whitespace breakage in initStruct etc. 2018-04-22 18:24:41 +02:00
David Goodwin
c147eb053b move to use db_assoc() rather than db_array() (code assumes assoc. array) 2018-02-10 21:08:29 +00:00