Commit Graph
63 Commits
Author SHA1 Message Date
David Goodwin 798e8b269c Topt app passwords fixes (WIP) (#805)
various improvements to the TOTP code see also:  #802
2025-05-16 20:31:20 +01:00
David Goodwin 759304ecb8 apparently these all need reformatting 2024-12-05 14:33:41 +00:00
David Goodwin 56dd787ce2 when going through password recovery, only wipe the recovery token after the user has updated their password
see https://github.com/postfixadmin/postfixadmin/issues/550
2024-05-17 22:02:01 +01:00
David Goodwin f01274ec94 try relaxing composer dependencies to allow php8.2 dev support, reformat so composer format passes 2024-04-22 21:02:01 +01:00
David Goodwin 8c1369068f fix #801 - incorrect path for common.php 2024-02-06 08:29:54 +00:00
David Goodwin 64c34b2c0a fix deletion of app password - see #800 2024-02-05 20:30:31 +00:00
David Goodwin ccbf3f9ab3 reformat/reorganise code 2023-12-23 21:59:33 +00:00
David Goodwin 8003978ca5 type hints etc and todo notes 2023-12-23 21:55:50 +00:00
David Goodwin 824ba906b1 more type hints 2023-12-23 21:49:57 +00:00
David Goodwin 015d4ec9cd reindent / reformat; add type hints for some of the app password stuff; try and make sure someone can only remove their own app password (see revokeAppPassword() ) 2023-12-23 21:43:31 +00:00
David Goodwin 4d17aa6ef9 manaul merge in of verdigado:master (see #753) (MFA/TOTP support) 2023-12-23 17:05:52 +00:00
David Goodwin 65aea00a1f see https://github.com/postfixadmin/postfixadmin/issues/667 - re-use smtp_get_admin_email(), try and make sure there is a From: set in password recovery emails 2022-11-30 21:18:06 +00:00
David Goodwin 2d6ded2786 PSR2 -> PSR12 formatting 2022-06-28 13:46:11 +01:00
David Goodwin ef36710ea7 print a better error message when password change is blocked 2022-06-11 09:03:03 +01:00
David Goodwin bf273904e6 indentation / stray ; 2021-08-04 20:36:52 +01:00
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. 2021-08-04 17:00:55 +01:00
David Goodwin 269515b1ad see: https://github.com/postfixadmin/postfixadmin/issues/105 - log the ip address from the users/login.php page too 2021-04-22 12:53:40 +01:00
David Goodwin 2edabc3e03 phpcs insists on some brace changes 2021-04-13 21:19:16 +01: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 d9813d4cf8 see #446 - try and detect site url but allow for $CONF['site_url'] override to be used. 2021-02-07 20:35:58 +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 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 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 0ca76d82f5 indent 2021-01-14 17:07:55 +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 1ac1eb07d5 indent 2021-01-13 10:52:15 +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 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
David Goodwin 750838d7f7 psalm fixes; make safepost()/safeget() return strings 2020-11-09 21:40:52 +00:00
David Goodwin f6f62180e8 remove some global variables 2020-09-27 11:02: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 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 bcae218cbb composer format time 2019-10-19 21:36:27 +01:00
David Goodwin e20b2cacdb psalm fix 2019-10-17 20:03:38 +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 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 730a05cdd3 phpcs fix 2019-02-12 15:51:56 +00:00